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 > Developer Center > Virtual Hosts on mac

Virtual Hosts on mac
Thread Tools
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jun 29, 2006, 09:46 PM
 
Anyone know how to correctly set this up? I was messing with it and about lost my local test site.
Im trying to do virutal hosts. Which you can create a fake address as long as it isn't already a registered tld (.com, .net. org) so i created mysite.tt in netinfo manager and it worked.
So now I want to make mysite.tt go to a directory in my local site. went a messing with virtual hosts and it did not work. Anyone know how to correctly set it up?
You shouldn't make fun of nerds... you'll be working for one some day.
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jun 30, 2006, 07:24 AM
 
<VirtualHost 127.0.0.1>
ServerName yourdomain.local
DocumentRoot /Users/yourname/Sites/path/to/public_html/
<Directory /Users/yourname/Sites/path/to/public_html/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
change yourname and yourdomain to what is appropriate, and you should be all set.

be advised that the permissions are pretty loose. (Allow* all) But it's a local site, so that ought to be ok.
     
   
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 10:52 PM.
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