Thread: Virtual Hosts Locally
12-17-2003, 12:34 AM #1jleecbdGuestVirtual Hosts Locally
Okay, I'm playing with variable document roots with apache 2, and have defined a virtual host following what appear to be all of the rules from apache.org.
I've created a virtual host called churchCMS. In my /etc/hosts file I've added the line 127.0.0.1 churchCMS just below the 127.0.0.1 localhost line. When I open Safari and type http://churchCMS/ I expect to be taken to the document root specified in the virtual host portion of the httpd.conf file. Instead I get a server not found error.
12-17-2003, 03:24 AM #2StarMantaGuest
12-17-2003, 03:29 AM #3jleecbdGuestOriginally Posted by StarManta
12-17-2003, 05:22 PM #4
- Member Since
- Jun 11, 2003
- Mount Vernon, WA
- MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
What I do is add a virtualhost container in my /etc/httpd/httpd.conf file and I give my domains on my system my own extension.. so www.churchcms.my or www.churchcms.loc and then you also have to get into "NetInfo Manager" in your utilities folder. Click on "machines" duplicate your "localhost" config, oh and make sure to authorize by clicking on the lock icon. after duplicating the localhost, select the duplicate and in the bottom pane double click on name field and type in www.churchcms.loc restart apache and that should take care of it!
Cheers!---> Join the Mac-Forums Folding team: use 37954 as your team number.
View Mac-Forums Folding team statistics (More Info)
Don't forget to use the User Reputation System
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By banjomacman in forum Web Design and HostingReplies: 0Last Post: 12-15-2011, 10:20 AM
By OnceYouGoMac in forum Switcher HangoutReplies: 2Last Post: 03-20-2010, 08:13 PM
By Liam in forum Web Design and HostingReplies: 2Last Post: 01-22-2009, 04:15 PM
By mikeeeo_o in forum Web Design and HostingReplies: 4Last Post: 01-01-2009, 03:33 PM