*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
<VirtualHost *>
ServerName site1.com
DocumentRoot /home/www/site1/html
VirtualScriptAlias /home/www/site1/cgi-bin
</VirtualHost> <--this two more times with the updated name,document root etc.
Now everytime i try to view site1 i get a forbidden error message which leades me to believe that i had to chmod it down. so naturally i do.
chmod 755 /home/www/site1/html
*however that does not fix it
so i tried to play around with the ownership with chown, but still no go. Any clue on what permission + owner/group the folders need to be so i can view my web content via the web?
Client Denied by server Config : /home/www/site1/html
Client Denied by server Config : /home/www/site1/html/favico.ico
Im searching around my .conf file to see if there is something i need to enable. No i do not believe im running a chrooted environment. So far its the basic install with apache2 nothing else modified but the httpd.conf and user/and directories of sites
For permission bits -- You need at least 4 on files and 1 on directories (and the directories leading to that directory).
The user/group can be anything you want, but I normally do owner to the user's login name, and then group to the group apache runs as (normally www). That way you can just do a 750 recursively at the top level home directory.
Also, at the risk of pointing out the obvious -- If you don't have +Indexes in your config someplace for the vhosts (or serverwide) you'll need an index.html or you'll get 403'd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.