Removed router.php from config.

Renamed folder to victorwesterlund.com and removed fixed /router.php location from api
This commit is contained in:
Victor Westerlund 2021-02-05 15:16:53 +01:00
parent c0df341818
commit 6588be968d

View file

@ -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;