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
1 changed files with 7 additions and 7 deletions

View File

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