Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 1.3 vhosts forbidden problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shaunj
n00b
n00b


Joined: 17 Mar 2003
Posts: 10

PostPosted: Mon Apr 14, 2003 6:36 pm    Post subject: Apache 1.3 vhosts forbidden problem Reply with quote

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
View user's profile Send private message
Yamakasi
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 201

PostPosted: Mon Apr 14, 2003 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
simcop2387
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 200
Location: Galactic Sector ZZ9 Plural Z Alpha

PostPosted: Sat May 03, 2003 12:56 am    Post subject: Reply with quote

i've been searching for this problem for a while, thanks for the help, got it fixed in about 20 seconds.
Back to top
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Fri Nov 07, 2003 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum