Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Watching how nginx proxies requests.
Write what kind of cms.
location / {
try_files $uri $uri/ /index.php?$args;
}
It is best to process it in puff, there is no need to make noodles out of nginx - Apache.
you can also do this
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php; } }
In PHP, look at which URL
And if the framework is used. then everything is simple.
Mhm. Well, your question is too broad.
Generally like this:
location =/index.php {
proxy_pass http://гдеувастамphpкрутится
...
остальные_параметры_proxy
}
location / {
rewrite ^/(.*) /index.php?tag=$1 last;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question