httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] 403 Forbidden ...
Date Tue, 13 Nov 2012 22:20:52 GMT
On Tue, Nov 13, 2012 at 4:54 PM, Lester Caine <lester@lsces.co.uk> wrote:

> lines like
> RewriteRule  ^/?wiki/view/(.+)$  /wiki/index.php?page=$1  [L]
>
> have been ammended to
>
> RewriteRule  ^/?wiki/view/(.+)$ /srv/website/eveshamtc.org.uk/**wiki/index.php?page=$1
>  [L]
>
> 'A web-path to a resource' is not using the DocumentRoot setting


I heard the same issue from someone else. While the documentation has not
changed from 2.2, I am wondering if it is now being done differently in 2.4.

First: The reason you had a change when you modified the <Directory />
require directive is because it was trying to match against /wiki on the
file system. (Note that a URL-path will be interpreted as a file-system
path is such a file exists. Do you have a /wiki folder? Or, might 2.4 not
be checking that properly?)
You could probably drop the leading slash and it would work (my only dev
server on 2.4 is Windows, so no guarantee that it is the same).
Have a look at the grey boxes at the top of
http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriterule that
explain how per-directory rules are processed, particularly the third point
in the second box: the per-directory prefix is only added to the result for
rules that are in a <Directory> block or .htaccess, not for other
containers.

Mime
View raw message