I've scanned over all of the articles I can find on this subject (including the ones at apache) and am stumped...
10.2.6
I have my main host running on port 8000
I want to run a test host as well, accessed only from my machine (127.0.0.1).
I have gone into Netinfo and copied localhost to
www.site.dev
In /etc/httpd/httpd.conf I have
1) removed the # from NameVirtualHost *
2) added a VirtualHost for my main machine
3) added a VirtualHost for my dev site
4) done an apachectl graceful restart
5) editted /etc/hosts to add
www.site.dev (I think this is un-used, but hey nothing else is working, so)
All accesses to the dev site are going to my main site (even tho the DocumentRoot is set differently).
Code:
NameVirtualHost *
<VirtualHost *:8000>
ServerName mysite.com
DocumentRoot /www
</VirtualHost>
<VirtualHost *:8000>
DocumentRoot /www/www.site.dev
ServerName www.site.dev
</VirtualHost>
Ideas? (I've tried many variations of the :8000 just in case)
I do have
ServerName mysite.com:8080
set back in the file (I think I did this to get the trailing / auto-added when it was missing). Could this be a conflict?
Thanks,
Mike