Testing modelled after example
This commit is contained in:
@@ -2,13 +2,17 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
root /var/www;
|
root /var/www/;
|
||||||
index index.html;
|
index index.php index.html;
|
||||||
# server_name _;
|
# server_name _;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri /index.php;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
||||||
|
|||||||
Reference in New Issue
Block a user