20 lines
461 B
Plaintext
20 lines
461 B
Plaintext
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
root /var/www/html;
|
||
|
|
||
|
# You may need this to prevent return 404 recursion.
|
||
|
location = /404.html {
|
||
|
internal;
|
||
|
}
|
||
|
|
||
|
location ~ [^/]\.php(/|$) {
|
||
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||
|
fastcgi_param HTTP_PROXY "";
|
||
|
fastcgi_pass 127.0.0.1:9000;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_index index.php;
|
||
|
include fastcgi_params;
|
||
|
}
|
||
|
}
|