From 6588be968daab635933b7a78a1fb940189e78979 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 5 Feb 2021 15:16:53 +0100 Subject: [PATCH] Removed router.php from config. Renamed folder to victorwesterlund.com and removed fixed /router.php location from api --- server.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.conf b/server.conf index ad69acf..d88a643 100644 --- a/server.conf +++ b/server.conf @@ -18,7 +18,7 @@ server { ssl on; include snippets/ssl.conf; - root /var/www/github_victorwesterlund_victorwesterlund.com/public; + root /var/www/victorwesterlund.com/public; error_page 404 403 /netwatch/PAGE_NOT_FOUND.html; location \ { @@ -57,10 +57,10 @@ server { ssl on; include snippets/ssl.conf; - root /var/www/github_victorwesterlund_victorwesterlund.com/api/endpoint; + root /var/www/victorwesterlund.com/api/endpoint; location \* { - try_files /router.php$request_uri =404; + try_files $uri.php $uri/ =404; add_header Access-Control-Allow-Origin *; include snippets/fastcgi-php-router.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock;