About nginx to implement jira reverse proxy

About nginx to implement jira reverse proxy

Summary: Configure nginx reverse proxy jira and implement https Configure Tomcat In this article, we set up JIRA to be accessible at the address http://jira.aniu.so/jira (standard HTTP port 80), while JIRA itself can listen on port 8080 using the context path /jira.

Configure nginx reverse proxy jira

Configure Tomcat

Modify the configuration file server.xml (in the jira installation directory)

Before:
<Context docBase="${catalina.home}/atlassian-jira" path="" reloadable="false" useHttpOnly="true"> After change: <Context docBase="${catalina.home}/atlassian-jira" path="/jira" reloadable="false" useHttpOnly="true">

Configuring the Connector

Add the proxyName and proxyPort elements (replacing them with the appropriate attributes), and another connector below - this is for troubleshooting purposes to bypass the proxy:

<!-- Nginx Proxy Connector --> # Only use nginx without https
<Connector port="8080" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true" proxyName="jira.aniu.so" proxyPort="80"/> <!-- OPTIONAL,Nginx Proxy Connector with https --> # 本文使用这次方式<Connector port="8081" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true" proxyName="jira.aniu.so" proxyPort="443" scheme="https" secure="true"/> <!-- Standard HTTP Connector --> <Connector port="8082" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/>

The above comments are original, the following are modified by myself

Configure nginx's virtual host:

After that, restart nginx and jira and it will work

The system panel displays normally:

This is the end of this article about the problem of implementing jira reverse proxy with nginx. For more relevant nginx reverse proxy content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Explanation of nginx load balancing and reverse proxy
  • Getting Started with Nginx Reverse Proxy
  • Nginx reverse proxy configuration to remove prefix case tutorial
  • Full process record of Nginx reverse proxy configuration
  • How to implement Nginx reverse proxy for multiple servers

<<:  Detailed explanation of the application of meta tags in mobile platform development

>>:  Hello dialog box design experience sharing

Recommend

JS implements the dragging and placeholder functions of elements

This blog post is about a difficulty encountered ...

VMware ESXi 5.5 deployment and configuration diagram process

Table of contents 1. Installation requirements 2....

Repair solution for inconsistent MySQL GTID master and slave

Table of contents Solution 1: Rebuild Replicas Pr...

The difference and usage of distinct and row_number() over() in SQL

1 Introduction When we write SQL statements to op...

Definition and function of zoom:1 attribute in CSS

Today I was asked what the zoom attribute in CSS ...

Tips for turning pixels into comprehensive brand experiences

Editor: This article discusses the role that inte...

Uncommon but useful tags in Xhtml

Xhtml has many tags that are not commonly used but...

JS Decorator Pattern and TypeScript Decorators

Table of contents Introduction to the Decorator P...

How to implement nested if method in nginx

Nginx does not support nested if statements, nor ...

Detailed explanation of the six common constraint types in MySQL

Table of contents Preface 1.notnull 2. unique 3. ...

Detailed explanation of process management in Linux system

Table of contents 1. The concept of process and t...