This commit is contained in:
temasky
2020-07-31 12:45:56 +00:00
commit 5d419635ed
306 changed files with 26949 additions and 0 deletions
@@ -0,0 +1,26 @@
#
# Run Roundcube as a sub-domain virtual host.
#
# Block access to default directories and files under these directories
location ~ ^/(bin|config|installer|logs|SQL|temp|vendor)/.* { deny all; }
# Block access to default files under top-directory and files start with same name.
location ~ ^/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)$ { deny all; }
# Block plugin config files and sample config files.
location ~ ^/plugins/.*/config.inc.php.* { deny all; }
# Block access to plugin data
location ~ ^/plugins/enigma/home($|/.*) { deny all; }
location / {
root PH_RCM_HTTPD_ROOT_SYMBOL_LINK;
index index.php index.html;
include PH_NGINX_CONF_TMPL_DIR/hsts.tmpl;
}
location ~ \.php$ {
root PH_RCM_HTTPD_ROOT_SYMBOL_LINK;
include PH_NGINX_CONF_TMPL_DIR/fastcgi_php.tmpl;
fastcgi_param SCRIPT_FILENAME PH_RCM_HTTPD_ROOT_SYMBOL_LINK$fastcgi_script_name;
}