Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 8th, 2012, 09:24 AM
colpaarm's Avatar
colpaarm colpaarm is offline
300lb Bench!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2001
Location: New York
Posts: 2,343 colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 10 h 50 m 4 sec
Reputation Power: 60
My Virtual hosts no longer work after upgrading to Mountain Lion

Hey guys. I have a website and do local development on my laptop. Here's what I have.

In my /etc/hosts files, I have:

127.0.0.1 my_local_site.com

Under /etc/apache2/extra/httpd-vhosts.conf I have

Code:
<VirtualHost *:80>
    DocumentRoot "/Users/my_user/Sites/some_sub_dir/my_local_site.com"
    ServerName my_local_site.com
    ErrorLog "/private/var/log/apache2/my_local_site.com-error_log"
    CustomLog "/private/var/log/apache2/my_local_site.com-access_log" common
    <Directory "/Users/my_user/Sites/some_sub_dir">
      Options            FollowSymLinks
      AllowOverride      All 
    </Directory>
</VirtualHost>


Now if you notice, the "Directory" option is set to "/Users/my_user/Sites/some_sub_dir" and not "/Users/my_user/Sites/some_sub_dir/my_local_site.com", because that allows me to have my sites on my thumbnail drive. So the "my_local_site.com" directory is actually a symlink to directories on my thumbnail drive. This is my work laptop and I'd rather not have my code on the actual laptop hardrive.

Under my httpd.conf file, I have

# User home directories
Include /private/etc/apache2/extra/httpd-userdir.conf
...
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf

This is a setup that I've used in previous versions of mac os x with no problem, but since my upgrade to mountain lion, I continue to get the following in the logs:

[Tue Aug 07 23:55:01 2012] [error] [client 127.0.0.1] client denied by server configuration: /Users/my_user/Sites/some_sub_dir/my_local_site.com/
[Tue Aug 07 23:55:01 2012] [error] [client 127.0.0.1] client denied by server configuration: /Users/my_user/Sites/some_sub_dir/my_local_site.com/favicon.ico

I tried getting rid of the "my_local_site.com" symlink and just creating a regular "my_local_site.com" directory and putting an index.html file under there and I have the same error. There are no syntax errors in any of my configuration files and the error I'm getting is not all that descriptive. Anybody have experience with this?
__________________
Correspondence chess
nothingbutchess.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > My Virtual hosts no longer work after upgrading to Mountain Lion

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap