buddywilliams
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by buddywilliams
-
-
I'm running Windows Server 2003 with Apache 2 and PHP 5. I have configured apache with VirtualHosts.
I'n having problems with AllowOverride:
If AllowOverride is set to:
AllowOverride None
Then the website looks fine but apache will not parse the .htaccess file.
If AllowOverride is set to:
AllowOverride All
Then the .htaccess file gets parsed but the images on the website will not show. It returns 403 error if I try to access the image directly.
I have read that I shouldn't concern myself with file permissions because Windows handles it all the same. I just don't understand why Apache won't show the images?
AllowOverride makes images give a 403
in Apache HTTP Server
Posted
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.yourdomain.com
ServerAlias yourdomain.com *.yourdomain.com
DocumentRoot htdocs/www/yourdomain/public_html
<Directory "htdocs/www/yourdomain/public_html">
AllowOverride All
Options +MultiViews All
</Directory>
</VirtualHost>
The key was: Options [b]+MultiViews[/b]