Last active
February 20, 2025 07:39
Revisions
-
Tad DeVries revised this gist
Nov 4, 2013 . 1 changed file with 0 additions and 27 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,31 +37,4 @@ server { error_log /var/log/nginx/owa-ssl-error.log; access_log /var/log/nginx/owa-ssl-access.log; }
-
Tad DeVries revised this gist
Nov 4, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ server { listen 80; #listen [::]:80; server_name mail.gwtest.us autodiscover.gwtest.us; return 301 https://$host$request_uri; } -
Tad DeVries revised this gist
Nov 4, 2013 . 1 changed file with 37 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ server { listen 80; #listen [::]:80; server_name gwtest.us mail.gwtest.us autodiscover.gwtest.us; return 301 https://$host$request_uri; } server { listen 443; #listen [::]:443 ipv6only=on; ssl on; @@ -15,23 +15,53 @@ server { server_name mail.gwtest.us; location / { return 301 https://mail.gwtest.us/owa; } proxy_read_timeout 360; proxy_pass_header Date; proxy_pass_header Server; #proxy_pass_header Authorization; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location ~* ^/owa { proxy_pass https://exch1.test.local; } location ~* ^/Microsoft-Server-ActiveSync { proxy_pass https://exch1.test.local; } location ~* ^/ecp { proxy_pass https://exch1.test.local; } location ~* ^/rpc { proxy_pass https://exch1.test.local; } #location ~* ^/mailarchiver { proxy_pass https://mailarchiver.local; } error_log /var/log/nginx/owa-ssl-error.log; access_log /var/log/nginx/owa-ssl-access.log; } server { listen 443; server_name autodiscover.gwtest.us; # Enable SSL ssl on; ssl_certificate /etc/ssl/nginx/mail.gwtest.us.crt; ssl_certificate_key /etc/ssl/nginx/mail.gwtest.us.open.key; ssl_session_timeout 5m; # Set global proxy settings proxy_read_timeout 360; proxy_pass_header Date; proxy_pass_header Server; proxy_pass_header Authorization; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location ~* ^/Autodiscover { proxy_pass https://exch1.test.local; } error_log /var/log/nginx/autodiscover-ssl-error.log; access_log /var/log/nginx/autodiscover-ssl-access.log; }
-
Tad DeVries created this gist
Nov 2, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ server { listen 80; #listen [::]:80; server_name gwtest.us mail.gwtest.us autodiscover.gwtest.us; rewrite ^(.*) https://$host$1 permanent; } server { listen 443; #listen [::]:443 ipv6only=on; ssl on; ssl_certificate /etc/ssl/nginx/mail.gwtest.us.crt; ssl_certificate_key /etc/ssl/nginx/mail.gwtest.us.open.key; ssl_session_timeout 5m; server_name mail.gwtest.us; rewrite ^/$ https://mail.gwtest.us/owa permanent; proxy_read_timeout 360; proxy_pass_header Date; proxy_pass_header Server; #proxy_pass_header Authorization; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location ~* ^/owa { proxy_pass https://exch1.test.local; } location ~* ^/Microsoft-Server-ActiveSync { proxy_pass https://exch1.test.local; } location ~* ^/ecp { proxy_pass https://exch1.test.local; } location ~* ^/rpc { proxy_pass https://exch1.test.local; } #location ~* ^/mailarchiver { proxy_pass https://mailarchiver.local; } error_log /var/log/nginx/owa-ssl-error.log; access_log /var/log/nginx/owa-ssl-access.log; }