*BSD This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-04-2005, 04:54 PM
|
#1
|
|
Member
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296
Rep:
|
apache2 help -Virtual Host-
Im in the process of setting up three virtualhost sites with apache 2 on freebsd 5.4.
Normally ( on linux )
I would just creat a group and user , for example www (user) and users (group)
Then in the home directory of the new users www i would set-up the site architect as followed
users -www
/home/www/
--site one
/home/www/site1
/home/www/site1/html <--web files
/home/www/site1/cgi-bin <--virtual cgi-bin
--site two
/home/www/site2
/home/www/site2/html
/home/www/site2/cgi-bin
site-three
/home/www/site3
/home/www/site3/html
/home/www/site3/cgi-bin
And the httpd.conf file looks like this
<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?
|
|
|
|
06-05-2005, 02:24 PM
|
#2
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Are you running in a chrooted environment?
Are there any messages in the error_log file?
|
|
|
|
06-05-2005, 07:48 PM
|
#3
|
|
Member
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296
Original Poster
Rep:
|
Yes, the error in the error log is
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
|
|
|
|
06-06-2005, 12:33 PM
|
#4
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Could you post a copy of httpd.conf.
|
|
|
|
06-06-2005, 01:09 PM
|
#5
|
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|