ich hab folgendes konfiguriert.
httpd.conf
- Code: Select all
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin info@domain1.de
DocumentRoot "D:/http/xampp/htdocs"
ServerName localhost
<directory D:/http/xampp/htdocs>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 81.169.187.39:80
<VirtualHost 81.169.187.39:80>
ServerAdmin info@domain1.de
DocumentRoot "D:/http/xampp/htdocs"
ServerName www.domain1.de
<directory D:/http/xampp/htdocs>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 81.169.187.39:80
<VirtualHost 81.169.187.39:80>
ServerAdmin info@domain2.de
DocumentRoot "D:/http/xampp/htdocs2"
ServerName www.domain2.de
<directory D:/http/xampp/htdocs2>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 81.169.187.39:80
<VirtualHost 81.169.187.39:80>
ServerAdmin info@domain2.de
DocumentRoot "D:/http/xampp/htdocs2"
ServerName domain2.de
<directory D:/http/xampp/htdocs2>
AllowOverride All
</directory>
</VirtualHost>
hosts
- Code: Select all
127.0.0.1 localhost
81.169.187.39 domain1.de
81.169.187.39 domain2.de
Das funktioniert auch genau so wie es soll, jedoch gibt die Ereignissanzeige von Windows bei Anwendungen folgenden Fehler 2 mal aus.
- Code: Select all
The Apache service named reported the following error:
>>> [Fri Dec 30 19:02:19 2005] [warn] NameVirtualHost 81.169.187.39:80 has no VirtualHosts.
Ist das schlimm?
Gruß
Matthias