Answer the question
In order to leave comments, you need to log in
Why doesn't location (Migrating from Apache to Nginx) work?
Good evening!
Today I am migrating a site to Nginx for the first time. Faced with the fact that "location" does not work (I do something no). I'm fighting with two rules:
location / {
try_files $uri /index.php?do=$uri;
}
location ~* \.(jpg|jpeg|gif|png|ico|js|css|html)$ {
expires 7d;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question