37 lines
994 B
Text
37 lines
994 B
Text
# docker-dotclear:*
|
|
# /etc/nginx/snippets/snippets_commmon.conf
|
|
# Dotclear nginx default server common configurations
|
|
|
|
# Disable some dotclear paths
|
|
location ~ ^/(db|cache|plugins|inc|var) {
|
|
deny all;
|
|
return 404;
|
|
}
|
|
|
|
# Docker healthcheck
|
|
location ~ ^/(fpm-ping)$ {
|
|
access_log off;
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/run/php-fpm.sock;
|
|
}
|
|
|
|
# Dotclear .php files
|
|
location ~ [^/]\.php(/|$) {
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
if (!-f $document_root$fastcgi_script_name) {
|
|
return 404;
|
|
}
|
|
|
|
include fastcgi_params;
|
|
set $path_info $fastcgi_path_info;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
fastcgi_param DC_BLOG_ID $dc_blog_id;
|
|
fastcgi_pass unix:/run/php-fpm.sock;
|
|
fastcgi_index index.php;
|
|
}
|
|
|