decrease789 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1730014011422d870836487.gif)
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Thu Feb 24, 2005 7:32 pm Post subject: [problem] 403 Forbidden dynamic vhosts |
|
|
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? |
|