Jump to content

AllowOverride makes images give a 403


buddywilliams

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?
Link to comment
https://forums.phpfreaks.com/topic/3307-allowoverride-makes-images-give-a-403/
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]

Archived

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

×
×
  • Create New...

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.