LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-15-2005, 05:32 PM   #1
bpk
Member
 
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Rep: Reputation: 15
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!
 
Old 02-15-2005, 05:50 PM   #2
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
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...
 
Old 02-15-2005, 06:34 PM   #3
bpk
Member
 
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
Old 02-15-2005, 06:41 PM   #4
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
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...
 
Old 02-16-2005, 06:38 PM   #5
bpk
Member
 
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
Old 02-16-2005, 06:47 PM   #6
bpk
Member
 
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
Old 02-16-2005, 06:58 PM   #7
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
Sure the problem is with the apache... just need reorder the vhosts and thats all, I don't understand what are you doing?....
 
Old 02-16-2005, 07:02 PM   #8
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
Create the unique path for you DocumentRoot for example /www, inside this include all your sites and then redirect your path for each vhost
 
Old 02-16-2005, 07:02 PM   #9
bpk
Member
 
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WebDAV - 'client denied by server configuration' error jamesrh Linux - Software 2 03-11-2015 09:19 AM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM
NFS Server thinks its exporting, client denied crosseyedalien Mandriva 2 05-17-2005 09:39 AM
client denied by server configuration mscomputers Linux - Security 2 12-07-2004 07:49 AM
Apache Vhost( You don't have permission to access / on this server.) trekgraham Linux - Software 3 07-08-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration