Answer the question
In order to leave comments, you need to log in
How to properly configure nginx with php?
There is something like this nginx configuration.
server {
listen 80;
server_name localhost;
...
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
location /first {
root c:/one/folder;
index index.php;
}
location /second {
root d:/different/location;
index index.php;
}
location /third {
root relative/path;
index index.php;
}
Answer the question
In order to leave comments, you need to log in
You are using the webserver configuration for routing within the application, this is not correct.
If you have different applications, then use different server {} blocks with different hosts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question