Jump to content


Photo

AllowOverride makes images give a 403


  • Please log in to reply
1 reply to this topic

#1 buddywilliams

buddywilliams
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 02 February 2006 - 07:55 PM

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?

#2 buddywilliams

buddywilliams
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 February 2006 - 02:05 PM

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 +MultiViews




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users