New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Virtual Hosts Locally


Post Reply New Thread Subscribe

 
Thread Tools
jleecbd
Guest
 
Posts: n/a

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.

Any suggestions?
QUOTE Thanks
StarManta
Guest
 
Posts: n/a

when you type http://churchCMS/ Safari is probably thinking you want churchCMS.com, which i bet doesn't exist. At least that's my guess.
QUOTE Thanks
jleecbd
Guest
 
Posts: n/a

Quote:
Originally Posted by StarManta
when you type http://churchCMS/ Safari is probably thinking you want churchCMS.com, which i bet doesn't exist. At least that's my guess.
No. Even dumber than that. I had defined the host as churchCMS in the hosts file, but Safari rendered it as churchcms, which wasn't recognized. BTW churchcms.com is a real domain.
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« Setting up mysql!! | OSX to 10.1 to10.2 to 10.3 updating (?) »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
virtual pc... does it suck? jgpippin Apple Notebooks 2 11-28-2003 12:35 AM
Virtual PC 4!!!! I'm pulling my hair out!!! shirlyeman Apple Desktops 0 10-28-2003 11:38 AM

All times are GMT -4. The time now is 12:39 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?