# docker-dotclear:2.31-dnf # nginx php-fpm server configuration to rewrite Dotclear's URL server { listen 80; server_name localhost; root /var/www/html; index index.php; location ~ ^/(db|cache|plugins|inc) { deny all; return 404; } location / { try_files $uri $uri/ @dotclear_path_info; } location @dotclear_path_info { rewrite ^/(.*) /index.php/$1 last; } location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name) { return 404; } include fastcgi_params; 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_pass 127.0.0.1:9000; fastcgi_index index.php; } }