W
W
WiMans2014-11-23 18:47:06
PHP
WiMans, 2014-11-23 18:47:06

Nginx + php - location allows you to use a slash at the end of the file?

How to specify in the nginx rules that it would be possible to access php files in this way site.com/file.php/foo/bar
and the files can be different
for one file is understandable

location / {
    try_files $uri $uri/ /index.php;
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WiMans, 2014-11-23
@WiMans

decision

location ~ .php/ {
    rewrite ^(.*.php)/ $1 last;
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question