...
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.
Reverse proxy configuration files
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Command to verify the load balancer configuration
apachectl configtest
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/ |
...
For NGINX server
Find the location of ngnix.conf file as per your OS and installation method and insert the following configurations.
Usually, it’s located at the following location: /etc/nginx/nginx.conf
Code Block |
---|
server {
listen 80;
server_name jira.example.com;
#Configuration for JIRA (running on port 8080)
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
} |
Configure Jira to work with reverse proxy
Jira server configuration file
...
Sample Jira server configuration file with reverse proxy and context details
View file | ||
---|---|---|
|
...
Re-Configure Jira to work in Cluster
Create a shared home directory
...
Create a cluster.properties file for both nodes which stores the note name and shared drive location
View file | ||
---|---|---|
|
Sample Jira cluster.properties file to be placed in each Jira local home
...
Add reverse proxy configurations for Cluster
Reverse proxy configuration for Jira Cluster
View file | ||
---|---|---|
|
...
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.
Usually, it’s located at the following location: /etc/nginx/nginx.conf
Code Block |
---|
server {
listen 80;
server_name jira.example.com;
#Configuration for JIRA (running on port 8080)
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
} |
...
View file | ||
---|---|---|
|
Sample Jira cluster.properties file to be placed in each Jira local home
...
fhsdg
...
Reverse proxy configuration for Jira Cluster
...
Jira server configuration file
...
Sample Jira server configuration file with reverse proxy and context details
View file | ||
---|---|---|
|
Reverse proxy configuration files
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
asfsa
command to verify load balancer
apachectl configtest
...
wetwet
...
Re-start Jira and check the node status
...
Node name will appear in the footer
...
Add remaining nodes as per this doc: https://confluence.atlassian.com/adminjiraserver/set-up-a-jira-data-center-cluster-993929600.html
\uD83D\uDCCB Related articles
https://confluence.atlassian.com/adminjiraserver/set-up-a-jira-data-center-cluster-993929600.html
Filter by label (Content by label) | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|