diff --git a/etc/nginx/sites-available/magnetico-web.conf b/etc/nginx/sites-available/magnetico-web.conf index fe8ff51..3542a81 100644 --- a/etc/nginx/sites-available/magnetico-web.conf +++ b/etc/nginx/sites-available/magnetico-web.conf @@ -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; }