Re: 403 Forbidden ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 13, 2012 at 4:54 PM, Lester Caine <lester@xxxxxxxxxxx> 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.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux