ik kan met een lokaal IP adres (10.0.0.12)
toegang krijgen tot mijn lokale test server (Centos 5, Apache2)
echter wil ik aantal virtuele servers op de test server aanmaken
maar tot nu toe is me dat nog niet gelukt:
httpd.conf:
#ServerName www.example.com:80
ServerName localhost:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/sites/site1/web
</VirtualHost>
<VirtualHost *:80>
ServerName localhost2
DocumentRoot /home/sites/site2/web
</VirtualHost>
/etc/hosts:
127.0.0.1 localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost
#hostname.domainname.com
#127.0.0.1 test.localhost
#10.0.0.12 localhost
#10.0.0.12 localhost.localdomain

Likes:


Quote