← Back to team overview

sslug-teknik team mailing list archive

Apache lader mig ikke opsætte virtual hosts

 

Alle steder jeg ser efter dokumentation om hvorledes man sætter virtual 
hosts op på Apache 1.3, står der det samme som i SSLUG's webserver-bog:
http://www.sslug.dk/linuxbog/web/bog/apache-virtuelle-hosts.html

Det fungerer bare ikke hos mig. Når jeg forsøger at indsætte

NameVirtualHost *
<VirtualHost *>
# Opsætning for første virtual host
</VirtualHost>
<VirtualHost *>
# opsætning for anden virtual host
</VirtualHost>

i httpd.conf får jeg følgende besked ved genstart af apache:

dt:~ # /etc/init.d/apache restart
Shutting down httpd                                                                                               
done
Starting httpd [ PERL PHP4 Python ][Sun Feb  9 21:38:53 2003] [warn] 
NameVirtualHost *:80 has no VirtualHosts                                                                                                                  
done
dt:~ #

Hvad går galt?

-- 
Med venlig hilsen / Best regards
David List



Follow ups