Answer the question
In order to leave comments, you need to log in
How to handle missing location in nginx?
There is a script for shortening url into one file, for example s.php There are many locations in nginx: /photo/ /author/ ... .... s.php file?
Answer the question
In order to leave comments, you need to log in
The problem was solved like this:
location ~* /([a-z0-9]+)$ {
rewrite ^/([a-z0-9]+)/?$ /s.php?url=$1 break;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question