mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-03-13 17:20:14 +01:00
27 lines
641 B
Plaintext
27 lines
641 B
Plaintext
server {
|
|
listen 80;
|
|
index index.php index.html;
|
|
server_name test.octt.eu.org;
|
|
root /Main/Server/www/kirby;
|
|
|
|
default_type text/plain;
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
rewrite ^/(content|site|kirby)/(.*)$ /error last;
|
|
rewrite ^/\.(?!well-known/) /error last;
|
|
rewrite ^/(?!app\.webmanifest)[^/]+$ /index.php last;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
|
|
location ~* \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_pass php;
|
|
include fastcgi.conf;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param SERVER_PORT 80;
|
|
}
|
|
}
|