23. Juni 2015 14:26
.....
rewrite ^(/jira)$ https://web.domain.de/jira/ permanent;
rewrite ^(/fisheye)$ https://web.domain.de/fisheye/ permanent;
rewrite ^(/confluence)$ https://web.domain.de/confluence/ permanent;
rewrite ^(/owa)$ https://web.domain.de/owa/ permanent;
rewrite ^(/crm)$ https://web.domain.de/crm/ permanent;
rewrite ^(/jira/.*) https://web.domain.de$1 permanent;
rewrite ^(/confluence/.*) https://web.domain.de$1 permanent;
rewrite ^(/fisheye/.*) https://web.domain.de$1 permanent;
rewrite ^(/owa/.*) https://web.domain.de$1 permanent;
rewrite ^(/crm/.*) https://web.domain.de$1 permanent;
.....
.....
rewrite ^(/jira)$ https://web.domain.de/jira/ permanent;
rewrite ^(/fisheye)$ https://web.domain.de/fisheye/ permanent;
rewrite ^(/confluence)$ https://web.domain.de/confluence/ permanent;
rewrite ^(/owa)$ https://web.domain.de/owa/ permanent;
rewrite ^(/EWS)$ https://web.domain.de/EWS/ permanent;
rewrite ^(/crm)$ https://web.domain.de/crm/ permanent;
location /crm {
proxy_pass https://pl-crm.domain.local;
include /etc/nginx/proxy_params;
}
.....
proxy_set_header Host $host;
proxy_pass_header Date;
proxy_pass_header Server;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
#proxy_set_header X-Forwarded-Server $host;
#proxy_set_header X-Forwarded-Host $host;
proxy_connect_timeout 300;
proxy_redirect http:// https://;
proxy_cache STATIC;
port_in_redirect off;
# add_header X-Frame-Options ALLOW;
25. Juni 2015 10:35
25. Juni 2015 11:01
25. Juni 2015 11:31
25. Juni 2015 17:54