summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:56:26 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:56:26 (GMT)
commit84c4a5d24cbef536b8248a3d8ff72bb2b4248c29 (patch)
treeaa5eaf24f84315ea5fa143bf287c9fcf7857391f /etc
parent45d3e695be499cf9f9956c223883073fc20d48b4 (diff)
downloadsite-84c4a5d24cbef536b8248a3d8ff72bb2b4248c29.tar.gz
Add test instance of the web site
Serve https://www.nagios-plugins.org:444/ from the "test" branch of this repository.
Diffstat (limited to 'etc')
-rw-r--r--etc/nginx/site.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/nginx/site.conf b/etc/nginx/site.conf
index 432c051..9105591 100644
--- a/etc/nginx/site.conf
+++ b/etc/nginx/site.conf
@@ -14,8 +14,9 @@
14# 14#
15server { 15server {
16 listen 443 ssl; 16 listen 443 ssl;
17 listen 444 ssl;
17 server_name www.nagios-plugins.org; 18 server_name www.nagios-plugins.org;
18 root /home/plugins/web/site; 19 root /home/plugins/web/port-$server_port;
19 20
20 # 21 #
21 # Downloads and attachments. 22 # Downloads and attachments.
@@ -71,9 +72,15 @@ server {
71 72
72# 73#
73# Redirect HTTP and all other domains to <https://www.nagios-plugins.org/>. 74# Redirect HTTP and all other domains to <https://www.nagios-plugins.org/>.
75# Ditto for the test instance.
74# 76#
75server { 77server {
76 listen 80 default_server; 78 listen 80 default_server;
77 listen 443 default_server ssl; 79 listen 443 default_server ssl;
78 return 301 https://www.nagios-plugins.org$request_uri; 80 return 301 https://www.nagios-plugins.org$request_uri;
79} 81}
82server {
83 listen 81 default_server;
84 listen 444 default_server ssl;
85 return 301 https://www.nagios-plugins.org:444$request_uri;
86}