Jump to content

Archived

This topic is now archived and is closed to further replies.

buddywilliams

AllowOverride makes images give a 403

Recommended Posts

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?

Share this post


Link to post
Share on other sites
I found the resolution:

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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.