aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nginx-naxsi/default.conf
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2017-01-03 00:43:33 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-01-11 01:38:22 +0100
commitf30d57caf6336ee2ddb597658b4a398987c340f7 (patch)
tree23d7b4f191da7f5992209aa59f4b85d9705343de /testing/nginx-naxsi/default.conf
parent00813d387cd54a49a42860ae3385257770547cb3 (diff)
downloadaports-f30d57caf6336ee2ddb597658b4a398987c340f7.tar.bz2
aports-f30d57caf6336ee2ddb597658b4a398987c340f7.tar.xz
testing/nginx-naxsi: update to 1.11.8 with dynamic modules
Added support for dynamic modules /usr/lib/nginx/modules: 3RD PARTY ================================ ngx_http_naxsi_module.so ngx_http_cache_purge_module.so ngx_http_upstream_fair_module.so ngx_http_sysguard_module.so * http-sysguard backported from tengine: http://tengine.taobao.org/document/http_sysguard.html CORE ================================ ngx_http_geoip_module.so ngx_http_image_filter_module.so ngx_http_perl_module.so ngx_http_xslt_filter_module.so ngx_mail_module.so ngx_stream_module.so ---------------------------------------------------- To load dynamic modules add to /etc/nginx/nginx.conf load_module "modules/ngx_module_name_above.so"; ----------------------------------------------------
Diffstat (limited to 'testing/nginx-naxsi/default.conf')
-rw-r--r--testing/nginx-naxsi/default.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/nginx-naxsi/default.conf b/testing/nginx-naxsi/default.conf
new file mode 100644
index 0000000000..9ae25d8fca
--- /dev/null
+++ b/testing/nginx-naxsi/default.conf
@@ -0,0 +1,18 @@
+# This is a default site configuration which will simply return 404, preventing
+# chance access to any other virtualhost.
+
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+
+ # Everything is a 404
+ location / {
+ return 404;
+ }
+
+ # You may need this to prevent return 404 recursion.
+ location = /404.html {
+ internal;
+ }
+}
+