View previous topic :: View next topic |
Author |
Message |
shaunj n00b

Joined: 17 Mar 2003 Posts: 10
|
Posted: Mon Apr 14, 2003 6:36 pm Post subject: Apache 1.3 vhosts forbidden problem |
|
|
I'm having a problem running vhosts under apache 1.3 in gentoo that I haven't seen among all the other vhost problems here in the forum. It's also a problem that goes away if I download the apache tarball and compile it manually (not using portage), but I'd like to not do that because that would defeat the purpose of a package manager.
I'm running a default apahce.conf with mod_php and mod_ssl (stuff put in by ebuild package config) and I uncommented the line "include vhosts/Vhosts.conf" to include vhosts configuration. My Vhosts.conf looks like this.
Code: | NameVirtualHost *
<VirtualHost *>
Options ALL
ServerAdmin user@domain.tld
DocumentRoot /home/httpd/vhosts/vhost.domain.tld
ServerName vhost.domain.tld
ErrorLog logs/vhost.domain.tld-error_log
CustomLog logs/vhost.domain.tld-access_log combined
</VirtualHost> |
The exact hostname has been changed for the post.
When I try to point a browser at that http://vhost.domain.tld/ I get a 403 Forbidden error. The /home/httpd/vhosts/vhost.domain.tld/ directory exists and is chown root and chmod 755.
The exact same config on an apache install from the tarball manually works fine. Any ideas?!
-Shaun |
|
Back to top |
|
 |
Yamakasi Apprentice

Joined: 28 Sep 2002 Posts: 201
|
Posted: Mon Apr 14, 2003 10:24 pm Post subject: |
|
|
go to your /etc/apache/conf/commonapache.conf
and be sure to point all the followling directives to the good vhosts directory
Code: |
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>
# These settings are pretty flexible, and allow for Frontpage and XSSI
<Directory /home/vhosts/*>
AllowOverride All
Options MultiViews Indexes Includes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Directory /home/vhosts/*/cgi-bin>
Options +ExecCGI -Includes -Indexes
SetHandler cgi-script
</Directory>
|
in your case, u would need to change
/home/vhosts/*
with
/home/httpd/vhosts/*/
Had the same problem..its now resolv
Hope it helps
Chris |
|
Back to top |
|
 |
simcop2387 Apprentice

Joined: 14 Aug 2002 Posts: 200 Location: Galactic Sector ZZ9 Plural Z Alpha
|
Posted: Sat May 03, 2003 12:56 am Post subject: |
|
|
i've been searching for this problem for a while, thanks for the help, got it fixed in about 20 seconds. |
|
Back to top |
|
 |
Oopsz Guru

Joined: 08 Oct 2002 Posts: 340
|
Posted: Fri Nov 07, 2003 9:16 pm Post subject: |
|
|
Thank you! Was having this problem today, and it was driving me nuts...
Now if I can just get the cgi-bin/ dir to map correctly... i'll be set... _________________ Pop-before-SMTP with the Gentoo Virtual Mailhosting Guide |
|
Back to top |
|
 |
|