Posted by:
tufa
(---.dsl.snfc21.sbcglobal.net)
I'm having difficulty getting the document root set properly. I have a number of sites in the www folder.
I thought the correct way of doing this was to uncomment this line in httpd.conf...
Include conf/extra/httpd-vhosts.conf
and then to add in httpd-vhosts.conf...
<VirtualHost *:80>
ServerName domain1.com
DocumentRoot /localhost/domain1.com
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
DocumentRoot /localhost/domain1.com
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
</VirtualHost>
This doesn't work. Root relative links still point to C:/wamp/www. So then I changed /localhost/ to c:/wamp/www/ for each domain and that didn't work either.
What is the correct way of making root relative links work?