Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Virtual Hosts in 10.7.3

Hi all


I'm trying to set up virtual host in 10.7.3


I have set


127.0.0.1 www.mysite.dev


in /private/etc/hosts


I've enabled Virtual Host in /etc/apache2/httpd.conf



I then have httpd-vhosts.conf as follows


<VirtualHost *:80>

ServerName www.mysite.dev

DocumentRoot "/Volumes/MacPro\ RAID/Web\ Development/mysite"


<Directory "/Volumes/MacPro\ RAID/Web\ Development/mysite">

Order allow,deny

Allow from all

</Directory>


</VirtualHost>



How ever I get

Forbidden

You don't have permission to access / on this server.


The folder mysite has all permissions set to read/write.


So can any one point out what I'm missing.


Cheers

Steve

Mac OS X (10.7.3)

Posted on Apr 11, 2012 4:09 PM

Reply
2 replies

Apr 11, 2012 4:31 PM in response to Cacus

I'm no expert with this sort of thing, but what worked for me when I was using it was this, in httpd-vhosts.conf:


<VirtualHost *:80>

DocumentRoot "/Users/thomas/Sites/ReedCorner"

ServerName reedcorner.dev

ServerAlias reedcorner.dev

ErrorLog "/private/var/log/apache2/reedcorner.dev-error_log"

</VirtualHost>


...and in /etc/apache2/users/thomas.conf:


<Directory "/Users/thomas/Sites/ReedCorner">

Options Indexes MultiViews Includes

AllowOverride All

Order allow,deny

Allow from all

</Directory>


The entry in your hosts file looks right.

Virtual Hosts in 10.7.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.