mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Reworked on Drupal's nginx template.
This commit is contained in:
parent
d2d6b85d43
commit
287da0f336
114 changed files with 5073 additions and 6023 deletions
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +66,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,12 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
try_files $uri /index.php?$query_string;
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +62,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
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;
|
||||||
|
@ -64,6 +53,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -11,6 +11,11 @@ server {
|
||||||
ssl_certificate %ssl_pem%;
|
ssl_certificate %ssl_pem%;
|
||||||
ssl_certificate_key %ssl_key%;
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
location @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -22,11 +27,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -72,6 +61,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
|
@ -7,6 +7,11 @@ 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 @rewrite {
|
||||||
|
rewrite ^/(.*)$ /index.php?q=$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -18,11 +23,6 @@ server {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(txt|log)$ {
|
|
||||||
allow 192.168.0.0/16;
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \..*/.*\.php$ {
|
location ~ \..*/.*\.php$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,18 +35,7 @@ server {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri /index.php?$query_string;
|
try_files $uri /index.php?$query_string;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /vendor/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/sites/.*/files/styles/ {
|
location ~ ^/sites/.*/files/styles/ {
|
||||||
try_files $uri @rewrite;
|
try_files $uri @rewrite;
|
||||||
|
@ -68,6 +57,7 @@ server {
|
||||||
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;
|
||||||
error_page 404 /error/404.html;
|
error_page 404 /error/404.html;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue