• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

SubDomain

cb666

Newbie
Hallo ich habe eine Subdomain angelegt log.domain.de und möchte nun in ein anderes folder linken.

www.domain.de soll in mein wwwroot folder

<VirtualHost *>
DocumentRoot /srv/www/htdocs
ServerName www.domain.de
</VirtualHost>

<VirtualHost *>
DocumentRoot /usr/local/awstats/wwwroot
ServerName log.domain.de
<Directory "/usr/local/awstats/wwwroot">
Options Includes FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Leider klappt das nicht! :-(
Habt ihr eine Idee?
 

nbkr

Guru
Das * sieht irgendwie nicht gut aus, könnte aber trotzdem sein dass es damit geht. Hast Du nach der Konfigurationsänderung den Apache neu gestartet und was sagen die Apache Logs dazu? Und was heißt "Es geht nicht", wird eine Fehlermeldung angezeigt, wird die falsche Seite angezeigt (wenn ja, welche)?
 
OP
C

cb666

Newbie
Folgendes kommt nach dem reload

Starting httpd [ PHP4 susehelp_acl ][Mon Jan 30 15:29:39 2006] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
 

nbkr

Guru
Machs mal so:


Code:
NameVirtualHost $IP:80

<VirtualHost $IP:80>
DocumentRoot /srv/www/htdocs
ServerName www.domain.de
</VirtualHost>

<VirtualHost $IP:80>
DocumentRoot /usr/local/awstats/wwwroot
ServerName log.domain.de
<Directory "/usr/local/awstats/wwwroot">
Options Includes FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Wobei Du $IP durch die IP Adresse ersetzt auf die der Apache hört.
 
OP
C

cb666

Newbie
nun kommt

Code:
Forbidden
You don't have permission to access / on this server.

Mal gucke was da mit den rechten nicht stimmt.
 

nbkr

Guru
Entwieder die Dateizugriffsrechte auf den DocumentRoot Ordner passt nicht, oder es liegt keine index.html drin.
 
Oben