On Sunday 23 April 2006 15:59, Mitchell Brown wrote:
> I have a problem. My apache webserver has been absolutely fine -- until
> now.
>
> All of a sudden, whenever I try and access a subdirectory (in the browser)
> it gives me a 403! What the hack?!
> My permissions are a=rwx! It shouldn't be doing this!
>
> Can someone help me? I'd really like to be able to use my server again!

First, look at your apache config file and determine what user and group 
apache is running as.  While you are in there, confirm where the DocumentRoot 
variable is pointing (remembering that VirtualHosts can point to a different 
location).

Then, chown the directory (from DocumentRoot) so that the apache user/group 
owns the directory.  Or otherwise make sure the apache user has the 
appropriate permissions - usually only read is needed I think.

Assigning a=rwx is a sure way to get yourself owned.  If I knew your ip 
addy/url, I can now write files to your server via http posts...

Another option, is to make sure you have set up a <Directory> directive 
properly.  I usually include an entry like this for my virtual hosts:

<Directory /home/www/mywebroot>
            Options execcgi
            AllowOverride All
            Order Allow,Deny
            Allow from All
</Directory>

But, make sure you understand the AllowOverride bit - this could lead to 
problems, especially if you allow anyone to write files to your directories 
like you currently have setup.  The Order line, and the Allow from line can 
sometimes fix that 403 error (assuming file permissions are setup right).

HTH

Shawn


_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to