PHP path_info problem

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
i can acces to
http://localhost/folder/app/app.php but after last p in php extension
anything else show up 404

On Mon, Jan 25, 2016 at 12:32:30PM -0500, Yoel Jimnez 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 ?

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 D. [email protected]

Enviado desde Outlook Mobile

De: Francis D.

Enviado: martes, 26 de enero 5:31 PM

Asunto: Re: PHP path_info problem

Para: [email protected]

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? Module ngx_http_core_module > 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 D. [email protected]
_______________________________________________ nginx mailing list
[email protected] nginx Info Page

On Thu, Jan 28, 2016 at 08:43:13PM +0000, [email protected] wrote:

Hi there,

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

So the request /final/app/app.PHP/controller/action/ will serve the
file $document_root/final/app/app.PHP/controller/action/ if it exists,
or it will do an internal rewrite to the url /app.php.

Which location{} in your config will handle that (sub)request?

The page at

comes up when I search for “php nginx path_info”. It has an example
configuration that may be worth examining.

Good luck with it,

f

Francis D. [email protected]