2021-08-08 17:23:49 +00:00
|
|
|
server {
|
|
|
|
index index.html index.php;
|
|
|
|
root {{ROOT_PATH}};
|
|
|
|
server_name {{SERVER_NAME}};
|
2021-10-03 16:27:35 +00:00
|
|
|
|
|
|
|
{{CUSTOM_CONFIG}}
|
|
|
|
|
2021-08-08 17:23:49 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php?$args;
|
|
|
|
}
|
2021-08-08 17:53:02 +00:00
|
|
|
location ^~ /wp-admin {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /super-cool-page {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /load_config.php {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /config.php {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /config.example.php {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /utils.php {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /tmp {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /modules {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
location ^~ /configure_nginx.php {
|
|
|
|
return 403;
|
|
|
|
}
|
2021-08-08 17:57:37 +00:00
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_pass unix:{{PHP_SOCKET}};
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
|
|
|
}
|
2021-08-08 17:23:49 +00:00
|
|
|
}
|