SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Plate_of_Shrimp's Avatar
    Join Date
    Jun 2009
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Virtual Host 403 error

    I've never done my development locally for CMS sites, and I'm attempting to rectify that. I'm running OSX Mountain Lion. I've started Apache, and everything works fine with accessing localhost. But I'd like to set up Virtual Hosts so I can keep local sites in their own folders, and that's where I run into trouble. I've uncommented the VH line in httpd.conf, and based on tutorials, I've added the following to https-vhosts.conf:

    Code:
    <VirtualHost *:80>
        DocumentRoot "/Library/WebServer/Documents"
    </VirtualHost>
    
    <VirtualHost *:80>
        DocumentRoot "/Users/Todd/Sites/drupaldev/dons.com"
        ServerName dons.local
        ErrorLog "/private/var/log/apache2/dons.local-error_log"
        CustomLog "/private/var/log/apache2/dons.local-access_log" common
    
        <Directory "/Users/Todd/Sites/drupaldev/dons.com">
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    I've also added "127.0.0.1 dons.local" to my hosts file. But trying to access dons.local leads to a 403 Forbidden error. I've done chmod 755 on the folder, but to no avail. Any ideas?

    NOTE: Possibly important, I'm booting from a small SSD, which contains System files and Applications, but my user folder is on a different hard drive.

  2. #2
    SitePoint Enthusiast Plate_of_Shrimp's Avatar
    Join Date
    Jun 2009
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, never mind, I think I've determined that the problem is definitely due to the way I have the OS installed, and probably solvable with some path stuff, but I can't figure it out. I've got enough room on the SSD for this, so I just set up a VH environment there, and I seem to be off and running!

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    what does your error log say /private/var/log/apache2/dons.local-error_log sometimes you can get more information form that.

    Joe


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •