mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-13 19:13:42 +02:00
Added optional veto router.php index
Attempting an extensionless API URL.
This commit is contained in:
parent
6588be968d
commit
4516299557
1 changed files with 9 additions and 3 deletions
12
server.conf
12
server.conf
|
@ -59,10 +59,16 @@ server {
|
|||
|
||||
root /var/www/victorwesterlund.com/api/endpoint;
|
||||
|
||||
location \* {
|
||||
try_files $uri.php $uri/ =404;
|
||||
index router.php;
|
||||
|
||||
location \ {
|
||||
try_files $uri $uri/ $uri.html $uri.php$is_args$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
include snippets/fastcgi-php-router.conf;
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue