Cleaning nginx config.

This commit is contained in:
Alexey Skobkin 2019-12-29 02:59:42 +03:00
parent 6a7f3b1314
commit 88b7163f1e
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -2,7 +2,7 @@ server {
root /var/www/magnetico-web/current/public;
# Add index.php to the list if you are using PHP
index index.php; # index.html index.htm index.nginx-debian.html;
index index.php;
server_name magnetico.pw;
location / {
@ -11,7 +11,6 @@ server {
}
location ~ ^/index\.php(/|$) {
#fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
@ -51,11 +50,12 @@ server {
server {
if ($host = magnetico.pw) {
return 301 https://$host$request_uri;
} # managed by Certbot
}
listen 80 ;
listen [::]:80 ;
server_name magnetico.pw;
return 404; # managed by Certbot
listen 80 ;
listen [::]:80 ;
return 404;
}