Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-15-2005, 05:32 PM
|
#1
|
Member
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80
Rep:
|
Apache vhost issues (client denied by server configuration)
Hey all - I'm hoping yo guys can help me out with this. It's something I've managed to breeze by (as I've done this before) until today... I'll start with showing you my httpd.conf
httpd.conf
Everything but the following is default and has been untouched.
Code:
NameVirtualHost *:80
<VirtualHost *:80>
</VirtualHost>
#### deepdream.org vhosts ####
<VirtualHost *:80>
ServerName deepdream.org
ServerAlias www.deepdream.org
DocumentRoot /data/vhosts/www.deepdream.org/web
</VirtualHost>
<VirtualHost *:80>
ServerName bpk.deepdream.org
DocumentRoot /usr/home/bkeating/public_html
</VirtualHost>
<VirtualHost *:80>
ServerName gallery.deepdream.org
DocumentRoot /usr/home/bkeating/public_html/gallery
</VirtualHost>
Now bpk.deepdream.org and gallery.deepdream.org both work just fine. However, ( www.)deepdream.org does not. my httpd-error.log reports only this:
Code:
[Tue Feb 15 15:26:09 2005] [error] [client 64.81.54.23] client denied by server configuration: /data/vhosts/www.deepdream.org/web/
and thats with LogLevel Debug turned on.
Also, /data and EVERYTHING within is www:www owned (for testing) with permissions of rwxrwxr-x (775).
Any ideas? Thanks!
|
|
|
02-15-2005, 05:50 PM
|
#2
|
LQ Newbie
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15
Rep:
|
confirm if you syntax is OK (./apachectl configtest) and if correct I recommended put in www.deepdream.org how your default... and not left empty the first tag the virtual host, remember that the first tag the virtual host is your default...
|
|
|
02-15-2005, 06:34 PM
|
#3
|
Member
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80
Original Poster
Rep:
|
Syntax check reports "OK".
I also tested w/o the blank VirtualHost entry, and removed the ServerAlias line to make troubleshooting easier.
Any other ideas?
|
|
|
02-15-2005, 06:41 PM
|
#4
|
LQ Newbie
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15
Rep:
|
I put my example and It work fine
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin jlramire@protcom
DocumentRoot /directory/webs/
ServerName www.example1.espol.edu.ec
</VirtualHost>
<VirtualHost *:80>
ServerAdmin jlramire@protcom
DocumentRoot /directory/webs/pdpse
ServerName www.example2.espol.edu.ec
</VirtualHost>
<VirtualHost *:80>
ServerAdmin jlramire@protcom
DocumentRoot /directory/webs/websitecec
ServerName www.example3.espol.edu.ec
</VirtualHost>
<VirtualHost *:80>
ServerAdmin jlramire@protcom
DocumentRoot /directory/webs/websitecec
ServerName www.example4.espol.edu.ec
</VirtualHost>
The www.protcom.espol.edu.ec is my default Portal Site...
|
|
|
02-16-2005, 06:38 PM
|
#5
|
Member
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80
Original Poster
Rep:
|
Well, just for the hell of it I repointed me DocumentRoot to /usr/home/bkeating/public_html/deepdream.org/ (because i know the other two virtualhosts that point to it work) and sure enough, it worked!
So i checked the permissions on /data (which is it's own filesystem) are identical to that of ~bkeating/public_html/, etc. So... Im confused.
Ideas?
|
|
|
02-16-2005, 06:47 PM
|
#6
|
Member
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80
Original Poster
Rep:
|
Additionally....
keeping everything where it is and simply making a symlink of /data/vhosts/motionsiren.com/www to /usr/local/www/data/motionsiren and then adjusting the httpd.conf virtualhost entry to point to /usr/local/ww..... and TADA, it too, loads.
So am I right to assume that this isn't a system file permission problem but something with Apache?
|
|
|
02-16-2005, 06:58 PM
|
#7
|
LQ Newbie
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15
Rep:
|
Sure the problem is with the apache... just need reorder the vhosts and thats all, I don't understand what are you doing?....
|
|
|
02-16-2005, 07:02 PM
|
#8
|
LQ Newbie
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15
Rep:
|
Create the unique path for you DocumentRoot for example /www, inside this include all your sites and then redirect your path for each vhost
|
|
|
02-16-2005, 07:02 PM
|
#9
|
Member
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80
Original Poster
Rep:
|
Quote:
Originally posted by LordDark
Sure the problem is with the apache... just need reorder the vhosts and thats all, I don't understand what are you doing?....
|
/data is it's own volume. It's where all the real data lives on my systems. It makes it easy to upgrade, plug into new systems, etc.
It'd be easier to learn how to make Apache allow /data/.... access then do a series of symlinks.
|
|
|
All times are GMT -5. The time now is 09:11 AM.
|
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
|
|