Re: ProxyPassMatch and space in path to a file socket

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

 



At 04:02 PM 3/30/2016 +0200, Ghislain wrote:
hi,

I have ProxyPassMatch redirecting to a file socket to a php FPM process. The issue i have is that the ProxyPassMatch support sockets but it send the URL with encoding.

Therefor "my list.php" is sent as "my%20list.php" then making it a 404 not found.

Too long to rehash old stories of "don't use spaces in *nix file names" -- you can, with caveats, but probably shouldn't, particularly if you want to save your sanity ;=}

Try renaming "my list.php" to mylist.php or my_list.php.

Best -- Paul


  I use

ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/home/site1/logs/php-fpm-1151.sock|fcgi://localhost/home/site1/logs/public_html" timeout=900

I tried to modify things but was not able to find a solution to this. Is there a secret option to make it send the path unencoded ?


regards,
Ghislain.

ps: no, i would not use a network socket i don't want anybody on the localhost to be able to launch php code on it ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
To unsubscribe, e-mail: users-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