Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is recommended to create a new configuration file and add a reference to the httpd.conf file. See attached image where these configurations are added to jira-vhost.conf file inside <APACHE_ROOT>/extra directory and the reference is added in the httpd.conf file

Proxy pass is used to forward requests from a web server to another server, while proxy pass reverse is used to forward responses from the other server back to the web server.

Info

Please note we have not yet changed the context path of Jira. It is running in its default context of / and it can be accessed simply by using the URL http://localhost:8080/

Image Modified
Code Block
<VirtualHost *:80>
    ServerName jira.example.com
     
    ProxyRequests Off
    ProxyVia Off
    ProxyPreserveHost On
     
#    <Proxy *>
#         Require all granted
#    </Proxy>

 	#for JIRA DC Cluster Setup
	<Proxy balancer://jiracluster>
		# JIRA DC node 1
		BalancerMember http://192.168.29.211:8080/jira route=primary
		# The above link refers to Link #2 in Figure 1

		# JIRA DC node 2
		# BalancerMember http://192.168.29.103:8080/jira route=secondary
		# The above link refers to Link #6 in Figure 1

		# Security "we aren't blocking anyone but this the place to make those changes
		Order Deny,Allow
		Deny from none
		Allow from all

		# Load Balancer Settings
		# We are not really balancing anything in this setup, but need to configure this
		ProxySet lbmethod=byrequests
		ProxySet stickysession=JSESSIONID
	</Proxy>

 
    	ProxyPass /rm http://192.168.29.211:3060/rm/
    	ProxyPassReverse /rm http://192.168.29.211:3060/rm/

    	#for JIRA Data Center
    	# Don't reverse-proxy requests to the management UI
	ProxyPass /balancer-manager !

	# Reverse proxy all other requests to the JIRA cluster
	ProxyPass / balancer://jiracluster/

	# Here's how to enable the load balancer's management UI if desired
	<Location /balancer-manager>
		SetHandler balancer-manager

		# You SHOULD CHANGE THIS to only allow trusted ips to use the manager
		Order deny,allow
		Allow from all
	</Location>

	ErrorLog "/private/var/log/apache2/jira.example.com-error_log"
	CustomLog "/private/var/log/apache2/jira.example.com-access_log" common
</VirtualHost>

For NGINX server

Find the location of ngnix.conf file as per your OS and installation method and insert the following configurations.

...