Probleme mit vHosts unter Debian
Habe 2 Domains die ich per vHosts in 2 unterschiedliche Verzeichnisse leiten will.
Also vHosts geschrieben, aktiviert und apache neu gestartet
und trotzdem lande ich nur auf der Testseite von apache sowohl mit www als auch ohne
meine vHosts sehen so aus:
Also vHosts geschrieben, aktiviert und apache neu gestartet
und trotzdem lande ich nur auf der Testseite von apache sowohl mit www als auch ohne
meine vHosts sehen so aus:
<VirtualHost * >
ServerAdmin info@domain1.de
ServerName www.domain1.de
ServerAlias domain1.de *.domain1.de
DocumentRoot /var/www/domain1
<Directory /var/www/domain1>
Order Deny,Allow
Allow from all
Options -Indexes
</Directory>
</VirtualHost>
<VirtualHost * >
ServerAdmin info@domain2.de
ServerName www.domain2.de
ServerAlias domain2.de *.domain2.de
DocumentRoot /var/www/domain2
<Directory /var/www/domain2>
Order Deny,Allow
Allow from all
Options -Indexes
</Directory>
</VirtualHost>
Please also mark the comments that contributed to the solution of the article
Content-Key: 173775
Url: https://administrator.de/contentid/173775
Printed on: April 28, 2024 at 21:04 o'clock
4 Comments
Latest comment