mirror of
https://github.com/roundcube/roundcubemail-docker.git
synced 2026-05-05 02:46:14 +02:00
To protect files outside of the document root against unauthorized access. This is possible and recommended since a while, and will be required for Roundcubemail v1.7.
23 lines
612 B
Plaintext
23 lines
612 B
Plaintext
server {
|
|
index index.php index.html;
|
|
server_name php-docker.local;
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
root /var/www/html/public_html;
|
|
|
|
location ~ /(temp|logs)/ {
|
|
deny all;
|
|
return 403;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass ${NGINX_PHP_CGI};
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
}
|