Apache help for "public_html" folder option

Warren Togami warren at togami.com
Tue Nov 20 19:30:49 PST 2001


On Tue, 2001-11-20 at 13:06, Brian Chee wrote:
> Ok got it working....seems it MUST have execute permissions set.....the
> apache config I sent before also limits access to read-only....but you gotta
> explicitly enable execute for the web server to allow access.
> 
> /brian chee
> 
> University of Hawaii ICS Dept
> Advanced Network Computing Lab
> 1680 East West Road, POST rm 311
> Honolulu, HI  96822
> 808-956-5797 voice, 808-956-5175 fax

Yes, all directories leading up to public_html must be a minimum of 0711
permissions.  That would mean /home/chee and /home/chee/public_html
under a standard user scheme.

The execute bit seems to allow you to CD into the directory, although
you aren't able to list directory contents without the read bit (0755). 
If you want to disallow directory listing for both local users and web
vistors 0711 is the way to go.  Alternative you can turn off directory
indexes in httpd.conf if you only want to limit web visitors.

0755 will allow directory listing, like if you want people to browse
files in a directory.  Be aware that local users will be able to CD into
that directory too.

If you want to lock down your home directory for even local users, you
can change the owner or group.  Under standard Apache 0700 would work
for "chmod apache.apache directory/" and 0710 would work for "chgrp
apache directory/".



More information about the LUAU mailing list