From 7ef7c0bff080959825185a03d558d806888a91a5 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 20 Jan 2014 01:56:45 +0100 Subject: Nginx: Serve http://test.monitoring-plugins.org/ Our plugins/t/check_http.t checks . diff --git a/etc/nginx.conf b/etc/nginx.conf index b8e3fd0..5cbbeeb 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -90,6 +90,21 @@ server { } # +# Our plugins/t/check_http.t checks . +# +server { + listen 130.133.8.40:80; + server_name test.monitoring-plugins.org; + root /home/plugins/web/site; + location ~ ^/(?:index.html)?$ { + # Serve index.html. + } + location / { + return 301 https://www.monitoring-plugins.org$request_uri; + } +} + +# # Redirect HTTP and all other domains to . # Ditto for the test instance. # -- cgit v0.10-9-g596f