leilukin-tumbleblog/includes/nginx.conf

21 lines
429 B
Nginx Configuration File
Raw Normal View History

2024-06-20 14:10:42 +00:00
# Template to enable clean URLs for the nginx web server.
#
# Usage:
#
# server {
# #...
# include filesystem/path/to/chyrp/include.conf;
# #...
# }
location /$chyrp_path/ {
index index.php;
rewrite \.twig$ /$chyrp_path/index.php;
location ^~ /$chyrp_path/admin/ {
try_files $uri $uri/ /$chyrp_path/admin/index.php;
}
try_files $uri $uri/ /$chyrp_path/index.php;
}