nginx - Lumen in a subfolder trailing slashes issue -


in public/index.php have changed $app->run() $app->run($app['request']) , resulted in lumen working in sub-folder, works:

http://local.dev/app/ http://local.dev/app/test 

however if there's slash @ end of route notfoundhttpexception. example:

http://local.dev/app/test/ 

i'm using nginx , rewrite rule folder is:

location /app/ {     try_files $uri $uri/ /app/index.php?$query_string; } 

am doing wrong?


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -