server {
server_name help.mysite.ru;
location ~^\/(.*)$ {
proxy_pass http://192.168.0.25:8080/servicedesk/customer/$1;
proxy_set_header Host help.mysite.ru;
proxy_set_header X-Forwarded-Host help.mysite.ru;
proxy_set_header X-Forwarded-Server help.mysite.ru;
proxy_set_header X-Forwarded-For https://jira.mysite.ru/servicedesk/customer/$1;
}
# location / {
# rewrite "^/$" http://192.168.0.25:8080/servicedesk/customer redirect;
# rewrite (.+)/$ http://192.168.0.25:8080/servicedesk/customer/$1 redirect;
# rewrite (.*)$ http://192.168.0.25:8080/servicedesk/customer/$1 redirect;
# }
listen 80;
}