← Back to team overview

sslug-teknik team mailing list archive

Apache VirtualHost og DocumentRoot

 

jeg har for at experimentere med virtualhost  tilføjet til /etc/hosts
følgende

127.0.0.1       localhost
127.0.0.1       www.customer1.it

www.customer1.it bruger jeg som virtualhost
Jeg kan nu med min browser tilgå http://www.customer1.it imidlertid giver
http://localhost samme resultat.
Først når jeg udkommenterer direktivet VirtualHost, viser serveren
DocumentRoot for localhost.
Hvad er meningen? Overruler VirtualHost direktiver settings uden for disse?
Hvad skal jeg gøre, for at man både kan se http://localhost og
http://www.customer1.it ?

mvh
 David Bo Jensen


Follow ups