ich habe 2 Domains, die auf einen Server zeigen sollen, natürlich auf unterschiedliche Verzeichnisse. Leider wird immer nur der erste VHost Eintrag für beide Domains aktiv. Die Domain2 ist eine Weiterleitung auf den Ordner "domain2/". Hier der Auszug aus der httpd.conf:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin dom1@as.de
DocumentRoot /var/www/domain1
ServerName domain1.de
ServerAlias www.domain1.de
ErrorLog /var/log/domain1.com-error.log
CustomLog /var/log/domain1.com-access.log common
<Directory "/var/www/domain1">
AllowOverride All
Options IncludesNoExec FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin dom2@as.de
DocumentRoot /var/www/
ServerName domain2.de
ServerAlias www.domain2.de
ErrorLog /var/log/domain2.com-error.log
CustomLog /var/log/domain2.com-access.log common
<Directory "/var/www/domain2">
AllowOverride All
Options IncludesNoExec FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Hoffe es kann mir jemand helfen.
MfG