- Code: Select all
<VirtualHost *:80>
DocumentRoot "/opt/lampp/htdocs"
ServerName inet
AddType text/html .html
AddOutputFilter INCLUDES .html
AddHandler server-parsed .html
<Directory "/opt/lampp/htdocs/">
Options ExecCGI Includes Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/opt/lampp/htdocs/webname"
ServerName webname
ErrorLog /opt/lampp/logs/error_sisoft.log
CustomLog /opt/lampp/logs/access_sisoft.log common
AddType text/html .html
AddOutputFilter INCLUDES .html
AddHandler server-parsed .html
<Directory "/opt/lampp/htdocs/webname">
Options ExecCGI Includes Indexes MultiViews
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Und jedesmal, wenn der Lampp neu gestartet wird, wirft er folgende Warnmeldung aus:
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
Und prompt kriege ich im Browser natürlich immer nur EIN Web zu sehen, obwohl ich meiner hosts-Datei (WinXP-Prof) beide eingetragen habe.
Merkwürdigerweise funktionieren die VHosts auf meinem lokalen, älteren Xampp unter XP absolut problemlos *wunder*.
[/code]