logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Directory Access Denied for virtual host
Author
cathysmith



Joined: 10 Mar 2010
Posts: 3

PostPosted: Wed 10 Mar '10 7:44    Post subject: Directory Access Denied for virtual host Reply with quote

I'm running Apache 2.2.11 on RHEL5. I am attempting to set up a 2d virtual host but keep running into the
Directory Access Denied
This Virtual Directory does not allow contents to be listed
Nothing logged to my files. I've tried to open up the access in the Directory block to see what's going on, but without any success. Permissions on all directories are 775. Here is the configuration for the vhost:

# edulink.foo.org
<Directory "/apps/edulink">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#
<VirtualHost 192.168.29.137:80>
ServerAdmin cathy.smith@pnl.gov
DocumentRoot "/apps/edulink/"
ServerName edulink.foo.org
ServerAlias edulink
ErrorLog "logs/edulink_error_log"
CustomLog "logs/edulink_access_log" combined
</VirtualHost>

Can someone recommend how to open access to the virtual hosts's directory?

Thank you.


Cathy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7405
Location: EU, Germany, Next to Hamburg

PostPosted: Wed 10 Mar '10 10:55    Post subject: Reply with quote

Do you get any error when try

Code:

apache2ctl -S
Back to top
cathysmith



Joined: 10 Mar 2010
Posts: 3

PostPosted: Wed 10 Mar '10 11:35    Post subject: Reply with quote

No errors. It lists the server and the 2 virtual hosts that I have defined.


[root@wfp3e tmp]# apachectl -t
Syntax OK
root@wfp3e:/tmp
[root@wfp3e tmp]# apachectl -S
VirtualHost configuration:
192.168.29.148:80 is a NameVirtualHost
default server wfp3e.pnl.gov (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:4Cool
port 80 namevhost wfp3e.pnl.gov (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:4Cool
192.168.29.148:443 wfp3e.pnl.gov (/apps/httpd-2.2.11/conf/extra/httpd-ssl.conf:81)
192.168.29.144:80 is a NameVirtualHost
default server demo.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:95)
port 80 namevhost demo.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:95)
192.168.29.144:443 is a NameVirtualHost
default server demo.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-ssl.conf:244)
port 443 namevhost demo.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-ssl.conf:244)
192.168.29.137:80 is a NameVirtualHost
default server edulink.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:75)
port 80 namevhost edulink.foo.org (/apps/httpd-2.2.11/conf/extra/httpd-vhosts.conf:75)
Syntax OK
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 10 Mar '10 17:29    Post subject: Reply with quote

SELinux?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7405
Location: EU, Germany, Next to Hamburg

PostPosted: Thu 11 Mar '10 0:26    Post subject: Reply with quote

With SELinux your files need to be owned by the user apache runs with. You could also try to disable SELinux only for apache for testing. http://www.cyberciti.biz/faq/howto-disable-httpd-selinux-security-protection/
Back to top
cathysmith



Joined: 10 Mar 2010
Posts: 3

PostPosted: Fri 12 Mar '10 2:42    Post subject: Reply with quote

SELinux is disaled.
Back to top


Reply to topic   Topic: Directory Access Denied for virtual host View previous topic :: View next topic
Post new topic   Forum Index -> Apache