Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[problem] 403 Forbidden dynamic vhosts
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
decrease789
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 194
Location: The United Krapdom

PostPosted: Thu Feb 24, 2005 7:32 pm    Post subject: [problem] 403 Forbidden dynamic vhosts Reply with quote

I keep getting a 403 error when I try to access www.mydomain.com, using this dynamic-vhosts.conf

Code:

UseCanonicalName Off

VirtualDocumentRoot /var/www/%0/htdocs

RewriteEngine On

Setenv VLOG /var/log/apache2/
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]


my standard vhosts.conf is below and it works fine!

Code:


<Directory ~ "/var/www/*/htdocs">
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews SymLinksIfOwnerMatch +ExecCGI
    <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>

#www.mydomain.biz
<VirtualHost 192.168.2.103 *:80>
ServerName www.mydomain.biz
ScriptAlias /cgi-bin/ /var/www/www.mydomain.biz/cgi-bin/
ServerAlias mydomain.biz
DocumentRoot /var/www/www.mydomain.biz/htdocs
#For per directory logging
Setenv VLOG /var/log/apache2/
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>



has anyone else got dynamic vhosts working?
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