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;