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
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.