PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache vserver zugriff auf dateien



dor557
05.06.11, 17:07
Hallo zusammen.

Ich bin total verzweifelt. ich versuche meine VHOSTS zum laufen zu bringen.

Der aufruf der Index.html oder php geht.

gebe ich aber dann z.b. dyndns-server.com/phpMyAdmin/ ein dann bekomme ich keinen zugriff auch wenn es dyndns-server.com/index.html heisst geht das nicht.

nur dyndns-server.com aufrufe gehen...

muss ich da etwas zusätzlich einstellen ???

weiss jemand rat ?

gruss Sascha

DrunkenFreak
05.06.11, 17:19
Den vHost musst du konfigurieren.

dor557
05.06.11, 19:03
Hallo,

Mit konfigurieren meinst du doch sicherlich nicht das ich alle konfigurationsdateien in die vhost.conf übernehmen muss oder etwa doch ??

Wenn ich recht überlege ist es ja logisch.. Jeder server eine eigene konfiguration.
Also gut ich werde es versuchen. danke muss nur noch schauen ob das in die vhost.conf rein kommt oder nicht.

gruss Sascha.

PS: Werde wenn ich das Problem gelöst habe hier meine lösung "Breittreten" :)

dor557
05.06.11, 19:48
also ich haben folgende vserver.conf

:


#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerAdmin dor557@arcor.de
ServerName l-d-h.dyndns-server.com

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot /srv/www/htdocs

# if not specified, the global error log is used
ErrorLog /var/log/apache2/l-d-h.dyndns-server.com-error_log
CustomLog /var/log/apache2/l-d-h.dyndns-server.com-access_log combined

# don't loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts
UseCanonicalName On

# configures the footer on server-generated documents
ServerSignature On


# Optionally, include *.conf files from /etc/apache2/conf.d/
#
# For example, to allow execution of PHP scripts:
#
# Include /etc/apache2/conf.d/php5.conf
#
# or, to include all configuration snippets added by packages:
Include /etc/apache2/conf.d/*.conf


# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have one, and where ScriptAlias points to.
#


# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES
# in /etc/sysconfig/apache2.

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/www/htdocs">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
#
Options None

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order Allow,Deny
Allow from all

</Directory>

</VirtualHost>

dennoch kann ich keine html seite aufrufen. aliase gehen aber sonst nichts. und die index selbstverständlich.... jemand anderes eine idee ???

DrunkenFreak
05.06.11, 20:05
Was sagen die Logs?