Merge pull request #1683 from crackerizer/drupal-nginx

Reworked on Drupal's nginx template
This commit is contained in:
Anton Reutov 2019-03-20 12:41:55 +03:00 committed by GitHub
commit 90b30a437b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
114 changed files with 5092 additions and 5738 deletions

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,63 +11,62 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / { location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ /vendor/.*\.php$ { location ~ ^(/[a-z\-]+)?/system/files/ {
deny all; try_files $uri /index.php?$query_string;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
location ~ ^(/[a-z\-]+)?/system/files/ { }
try_files $uri /index.php?$query_string;
} location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri @rewrite; fastcgi_pass %backend_lsnr%;
expires max; include /etc/nginx/fastcgi_params;
log_not_found off; }
} }
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;

View file

@ -7,64 +7,63 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off; }
}
location / {
location = /robots.txt { location = /favicon.ico {
allow all; log_not_found off;
log_not_found off; access_log off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ \..*/.*\.php$ {
deny all; return 403;
return 404; }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
try_files $uri /index.php?$query_string;
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
error_page 403 /error/404.html; error_page 403 /error/404.html;
error_page 404 /error/404.html; error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html; error_page 500 502 503 504 /error/50x.html;

View file

@ -10,63 +10,53 @@ server {
ssl on; ssl on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location ~ /vendor/.*\.php$ { location / {
deny all; location = /favicon.ico {
return 404; log_not_found off;
} access_log off;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri @rewrite; try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/imagecache/ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' { location ~ ^/sites/.*/files/imagecache/ {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $uri @rewrite;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,52 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location / {
try_files $uri @rewrite;
}
location @rewrite { location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1; rewrite ^/(.*)$ /index.php?q=$1;
} }
location / {
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ /vendor/.*\.php$ { try_files $uri @rewrite;
deny all;
return 404;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
try_files $uri @rewrite; try_files $uri @rewrite;
expires max; expires max;
log_not_found off; log_not_found off;
} }
location ~ ^/sites/.*/files/imagecache/ { location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite; try_files $uri @rewrite;
} }
location ~ '\.php$|^/update.php' { location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%; fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -11,62 +11,56 @@ server {
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
} }
location / { location / {
try_files $uri /index.php?$query_string; location = /favicon.ico {
} log_not_found off;
access_log off;
}
location ~ /vendor/.*\.php$ { location = /robots.txt {
deny all; allow all;
return 404; log_not_found off;
} access_log off;
}
location ~ ^/sites/.*/files/styles/ { location ~ \..*/.*\.php$ {
try_files $uri @rewrite; return 403;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~ ^/sites/.*/private/ {
try_files $uri /index.php?$query_string; return 403;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ ^/sites/[^/]+/files/.*\.php$ {
try_files $uri @rewrite; deny all;
expires max; }
log_not_found off;
}
location ~ '\.php$|^/update.php' { try_files $uri /index.php?$query_string;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location ~ ^/sites/.*/files/styles/ {
fastcgi_pass %backend_lsnr%; try_files $uri @rewrite;
include /etc/nginx/fastcgi_params; }
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
}
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

View file

@ -7,62 +7,56 @@ server {
access_log /var/log/nginx/domains/%domain%.bytes bytes; access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error; error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico { location @rewrite {
log_not_found off; rewrite ^/(.*)$ /index.php?q=$1;
access_log off;
} }
location = /robots.txt { location / {
allow all; location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
}
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
} }
location ~ ^/sites/.*/private/ { location = /robots.txt {
return 403; allow all;
} log_not_found off;
access_log off;
location ~ ^/sites/[^/]+/files/.*\.php$ { }
deny all;
} location ~ \..*/.*\.php$ {
return 403;
location / { }
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
}
location ~ /vendor/.*\.php$ { location ~ ^/sites/.*/files/styles/ {
deny all; try_files $uri @rewrite;
return 404; }
}
location ~ ^/sites/.*/files/styles/ { location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri @rewrite; try_files $uri /index.php?$query_string;
} }
location ~ ^(/[a-z\-]+)?/system/files/ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri /index.php?$query_string; try_files $uri @rewrite;
} expires max;
log_not_found off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~ '\.php$|^/update.php' {
try_files $uri @rewrite; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
expires max; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
log_not_found off; fastcgi_pass %backend_lsnr%;
} include /etc/nginx/fastcgi_params;
}
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass %backend_lsnr%;
include /etc/nginx/fastcgi_params;
} }
error_page 403 /error/404.html; error_page 403 /error/404.html;

Some files were not shown because too many files have changed in this diff Show more