Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > virtual host woes

virtual host woes
Thread Tools
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Aug 18, 2003, 02:55 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:20 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2