A
A
Alexander Semenenko2020-06-13 22:11:26
Nginx
Alexander Semenenko, 2020-06-13 22:11:26

How are these entries different in nginx?

location / {
        rewrite ^ /index.php;
    }

and

location / {
        rewrite ^ /index.php$uri;
    }


Am I understanding the principle correctly, ^ is the beginning of a line, meaning that all lines in these two examples start being processed by the index.php script? And what does $uri do in the second example?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question