Directory listing inside one of our VirtualHost configurations has stopped
working recently.
It now returns a 403 Forbidden when trying to access a directory.
The url is protected with basic authentication from a .htpasswd file.
Accessing a specific file under de location presents no problem. =>
The regex groups count from left to right,
Also the paths start with a /
So the rule should be something like:
RewriteRule
^/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$
php-page-name.php?dept=$1&maincat=$2&subcat=$3&product=$4 [L]
-
Van:
>> Alias /mydirectory / "/my/actual/location"
>mismatch trailing slash a potential red flag her.
The actual rule has a trailing slash (typo during obfuscation of real location)
Alias /mydirectory / "/my/actual/location/"
> what URL fails and what's the verbatin error_log entry?
* http://m
I've found and fixed the problem.
It was caused by adding support for php.
The following rule caused the problem and is now commented out:
DirectoryIndex index.php
Thx for helping me with the search for the problem.
Regards
Stefaan Dutry
Van: stefaan