Subfolder for website on Mac OS X


Subfolder for website on Mac OS X



I would like to run a local PHP (5.3) website on Mac OS X 10.6. I have PHP configured properly and can access a website using http://mymac.local/~me/index.html. I have this folder structure:

~me/Sites/index.html which points to http://mymac.local/~me/index.html ~me/Sites/mysite/home.html which doesn't work 

If I try http://mymac.local/~me/mysite/home.html, I'll get a forbidden error stating I don't have permission to access that file. If I put home.html in the Sites folder, I still get the error. Seems Apache is hard wired to like only the index.html and no sub folders. Is there a way to get that working?




Strange http gzip issue

1:



sIFR Cause initial page load to stall?
Make a new folder under ~me/Sites/ and see if that folder is accessible.


What's the difference between APR (Apache Portable Runtime) 1.3 and 0.9?
Permissions have been changed, you could chown or chmod the folder and files to get them back to being readable..
404 Error Page ~ Redirect an Image - PHP


What is the benefit (if any) of using APR with Tomcat?


Direct “puts” in Rails, to Apache log

2:



RedirectMatch and Regex Tomfoolery
Look at the Sharing panel within System Preferences and make sure that File Sharing is turned on and that "Everyone" can Read your Sites folder..
With Django, what's the correct way to set up paths to the admin content and static content?


3:


I don't full understand your question.

However, from experience I know that Apache on OS X can be a pain.

You could dodge the problem and use XAMPP or MAMP instead..


4:


I ran chmod -R 777 Sites and that solved it..



80 out of 100 based on 80 user ratings 230 reviews