|
|
@ -21,25 +21,27 @@ location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gi |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# EasyEngine Admin Tools |
|
|
|
# Security Settings For Better Privacy |
|
|
|
|
|
|
|
# PMA Settings |
|
|
|
location /pma { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
# Deny Hidden Files |
|
|
|
location ~ /\. { |
|
|
|
deny all; |
|
|
|
access_log off; |
|
|
|
log_not_found off; |
|
|
|
} |
|
|
|
|
|
|
|
location /phpMyAdmin { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
# Deny Backup Extensions & Log Files |
|
|
|
location ~* ^.+\.(bak|log|old|orig|original|php#|php~|php_bak|save|swo|swp)$ { |
|
|
|
deny all; |
|
|
|
access_log off; |
|
|
|
log_not_found off; |
|
|
|
} |
|
|
|
|
|
|
|
location /phpmyadmin { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
# Return 403 Forbidden For readme.(txt|html) or license.(txt|html) |
|
|
|
if ($request_uri ~* "^.+(readme|license)\.(txt|html)$") { |
|
|
|
return 403; |
|
|
|
} |
|
|
|
|
|
|
|
# Adminer Settings |
|
|
|
location /adminer { |
|
|
|
return 301 $scheme://$host:22222/db/adminer/; |
|
|
|
} |
|
|
|
|
|
|
|
# Status Pages |
|
|
|
location /nginx_status { |
|
|
@ -55,23 +57,32 @@ location ~ ^/(status|ping) { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Security Settings For Better Privacy |
|
|
|
# EasyEngine Admin Tools |
|
|
|
|
|
|
|
# Deny Hidden Files |
|
|
|
location ~ /\. { |
|
|
|
deny all; |
|
|
|
access_log off; |
|
|
|
log_not_found off; |
|
|
|
# PMA Settings |
|
|
|
location /pma { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
} |
|
|
|
|
|
|
|
# Deny Backup Extensions & Log Files |
|
|
|
location ~* ^.+\.(bak|log|old|orig|original|php#|php~|php_bak|save|swo|swp)$ { |
|
|
|
deny all; |
|
|
|
access_log off; |
|
|
|
log_not_found off; |
|
|
|
location /phpMyAdmin { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
} |
|
|
|
|
|
|
|
# Return 403 Forbidden For readme.(txt|html) or license.(txt|html) |
|
|
|
if ($request_uri ~* "^.+(readme|license)\.(txt|html)$") { |
|
|
|
return 403; |
|
|
|
location /phpmyadmin { |
|
|
|
return 301 $scheme://$host:22222/db/pma; |
|
|
|
} |
|
|
|
|
|
|
|
# Adminer Settings |
|
|
|
location /adminer { |
|
|
|
return 301 $scheme://$host:22222/db/adminer/; |
|
|
|
} |
|
|
|
|
|
|
|
# Memcache Settings |
|
|
|
location /memcache { |
|
|
|
return 301 $scheme://$host:22222/php/memcache/; |
|
|
|
} |
|
|
|
|
|
|
|
# Opcache Settings |
|
|
|
location /opcache { |
|
|
|
return 301 $scheme://$host:22222/php/opcache/; |
|
|
|
} |
|
|
|