1. Demand
After installing Jira hope through other servers can also access, or want to share 80 port, then you can proxy Jira through Nginx, because there are a lot of jira in the jump action, so if you use the Jira port is not the default 80 port, Then the URL of the jump is assigned the default port of 80, not the one you want to set.
2. Nginx Configuration
The installation of Nginx is very simple, we directly post the configuration of the server part of the proxy Jira in Nginx.
server {Listen 8000;server_name xxx.xxx.xxx.xxx;access_log/var/log/nginx/access.log;error_log/var/log/nginx/ Error.log, #root html, #index index.html index.htm index.php;port_in_redirect off;location ~* ^.+/. (JPG|JPEG|GIF|PNG|SWF|RAR|ZIP|CSS|JS) $ { # #static file Rewrite ^ (. *) Http://xxx.xxx.xxx.xxx:8000/$1;break;} Location/{Proxy_pass http://xxx.xxx.xxx.xxx:8000;proxy_redirect off; Proxy_set_header Host $host: $server _port; # #重点在 $server _portproxy_set_header x-real-ip $remote _addr;proxy_set_header x-forwarded-for $proxy _add_x_ Forwarded_for;proxy_max_temp_file_size 0;proxy_connect_timeout 90;proxy_send_timeout 90;proxy_read_timeout 90; Proxy_buffer_size 4k;proxy_buffers 4 32k;proxy_busy_buffers_size 64k;proxy_hide_header Vary;proxy_set_header Accept-encoding ';p roxy_set_header Referer $http _referer;proxy_set_header Cookie $http _cookie;}}
The above describes the Nginx proxy Jira configuration, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.