PHP path_info problem

yoel07 at gmail.com yoel07 at gmail.com
Thu Jan 28 20:43:13 UTC 2016






Enviado desde Outlook Mobile



De: Francis Daly

Enviado: martes, 26 de enero 5:31 PM

Asunto: Re: PHP path_info problem

Para: nginx at nginx.org



On Mon, Jan 25, 2016 at 12:32:30PM -0500, Yoel Jiménez Del Valle wrote: Hi there, > I have a web app in php that relays on path_info to processs a request but > i always get a 404 when do > http://localhost/folder/app/app.php/controller/method > nginx always respond 404 any ideas how to solve this and gain access to the > request Which of your location{} blocks did you tell nginx to use to process the request for /folder/app/app.php/controller/method ?

For instance i want yo access to  /final/app/app.PHP/controller/action/ i hace this location un nginx.conf 

Location /final/app{

try_files $uri /app.php$is_args$args;

} but still same 404 im using wt-nmp tryin to move from apache 


 Which of your location{} blocks do you want nginx to use to process that request? http://nginx.org/r/location > i can acces to > http://localhost/folder/app/app.php but after last p in php extension > anything else show up 404 If you have "location ~ php$", that would match the second request there, but not the first. Perhaps you want "location ~ php" or "location /folder/app/app.php" or something else instead? Good luck with it, 	f -- Francis Daly francis at daoine.org _______________________________________________ nginx mailing list nginx at nginx.org http://mailman.nginx.org/mailman/listinfo/nginx 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160128/22017d99/attachment.html>


More information about the nginx mailing list