Cleaning nginx config.
This commit is contained in:
parent
6a7f3b1314
commit
88b7163f1e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue