OS X web server folder in Dropbox folder: correct permissions?
Hello,
I have purchased & installed OS X server. I want to run a local web server test environment, using static HTML and PHP pages.
- Everyone on the (W)LAN should be able to access the test site served from this machine.
- I do not want/need outside access to the LAN/server.
- As a logged-in admin, I need to be able to access the files in the server directory.
- The folder I'm serving the site from ("site") is a subfolder of my Dropbox folder: /users/MYACCOUNT/Dropbox/work/site/ . Dropbox (the application / service) should be able to uplad/sync the files in /work/site/, so I can e.g. see and edit them on an iOS device.
I cannot figure out how to set the access permissions correctly. Here's what I tried:
- OS X Server (2.2.1) is running.
- Server's Websites service is running and configured to use the "site" folder.
- Looking at the Account list in OS X Server, I see that there is a user "World Wide Web Server" ("_www"), but it is disabled and doesn't belong to any group.
- I changed the owner of "site" to "_www".
- I tried changing access privileges to "site" for "Everyone" to Read, then to Write, then to No Access.
Yet all I get when I try to access the site is "403: forbidden".
The web server error log has many "Permission denied: /Users/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable" entries. There is no ".htaccess" files in "/Users/", and I don't understand why the web server would even look there.
What am I doing wrong?
Do I need to set privileges for the parent folders of "site", too?
And once I have figured out/set correct privileges for the "site" folder - do I have to apply it recursively to all files and subfolders in it?
Thanks a lot!