summaryrefslogtreecommitdiffstats
path: root/etc/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx')
-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}