[NGINX conf] Stop serving files as indexAphp, index:php
Removed some boilerplate and overly specific configuration
This commit is contained in:
parent
bb175f3d4e
commit
d7d63e1464
|
@ -29,30 +29,16 @@ server {
|
||||||
ssl_certificate ssl/certs/social.example.org.crt;
|
ssl_certificate ssl/certs/social.example.org.crt;
|
||||||
ssl_certificate_key ssl/private/social.example.org.key;
|
ssl_certificate_key ssl/private/social.example.org.key;
|
||||||
|
|
||||||
# Logs
|
|
||||||
# FIXME: Uncomment and change the paths to setup logging
|
|
||||||
# access_log /path/to/access.log;
|
|
||||||
# error_log /path/to/error.log;
|
|
||||||
|
|
||||||
# Index
|
# Index
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
location ~ /index.php {
|
location ^~ /index.php {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
|
|
||||||
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
|
||||||
# Further optional configuration
|
|
||||||
# fastcgi_buffer_size 128K;
|
|
||||||
# fastcgi_buffers 4 256K;
|
|
||||||
# fastcgi_busy_buffers_size 256K;
|
|
||||||
# fastcgi_read_timeout 600s;
|
|
||||||
# fastcgi_send_timeout 300s;
|
|
||||||
# fastcgi_connect_timeout 75s;
|
|
||||||
# http2_push_preload on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Don't allow any PHP file other than index.php to be executed
|
# Don't allow any PHP file other than index.php to be executed
|
||||||
|
@ -101,4 +87,3 @@ server {
|
||||||
# log_not_found off;
|
# log_not_found off;
|
||||||
# }
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user