Apache NameVirtualHost
Jeg har sat min Apache server (Linux) op med 3 virtuelle hosts.Mit problem er at efter nogle få reloads begynder host 2 og host3 at pege på indholdet af host1, og det sker gradvist. Først er det kun html, og ingen billeder, og så bliver det det hele, altså som om man brugte host1 istedet.
Fra min httpd.conf:
NameVirtualHost 192.168.1.3
<VirtualHost 192.168.1.3>
ServerAdmin sumo@dakiller.dhs.org
DocumentRoot /usr/local/httpd/htdocs/kwsp
ServerName www.kwsp.dk
ErrorLog /var/log/httpd/www.kwsp.dk-error_log
CustomLog /var/log/httpd/www.kwsp.dk-access_log common
</VirtualHost>
<VirtualHost 192.168.1.3>
ServerAdmin sumo@dakiller.dhs.org
DocumentRoot /usr/local/httpd/htdocs/amberpolisher
ServerName www.amberpolisher.com
ErrorLog /var/log/httpd/www.amberpolisher.com-error_log
CustomLog /var/log/httpd/www.amberpolisher.com-access_log common
</VirtualHost>
<VirtualHost 192.168.1.3>
ServerName dm25.dhs.org
ServerAdmin sumo@dakiller.dhs.org
DocumentRoot /usr/local/httpd/htdocs/dm25
ErrorLog /var/log/httpd/dm25.dhs.org-error_log
CustomLog /var/log/httpd/dm25.dhs.org-access_log common
</VirtualHost>
Jeg har tjekket diverse forklaringer om opsætning af virtual hosts, men jeg kan ikke se nogle fejl!
Alle filer og dirs findes!
