Re: AliasMatch Problem - %2f in URL causes 404

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

 



malone wrote:
> I have an AliasMatch line as follows
>
> AliasMatch ^/(.*) "/var/www/localhost/htdocs/test.php"
>
> My aim is to make any URL be handled by the PHP script. This works great
> for all URLs, unless they have %2f in them, e.g.
>
> http://127.0.0.1/foo%2fbar
>
> Instead of running the PHP script apache returns a 404 error. %2f
> decodes to the "/" character, so I assume that is causing problems
> somewhere. I also notice on my windows machine that %5c ("\") causes the
> same problem.

Sorry I don't have any real help here, but I think the backslash
character is %2c (not %5c).

[using this for a reference:
http://www.w3schools.com/tags/ref_urlencode.asp]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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