If a customer would like to remove port 8080 or 8090 (or 7990 etc) from the URL, you will need to install mod_proxy.
Assumptions
- You are running Linux (RedHat, CentOS etc)
Step by Step Guide
yum install httpd
nano /etc/httpd/conf.d/jira.conf (or confluence.conf)
- Use one of the following snippets
- JIRA:
ProxyRequests Off<VirtualHost *>
ServerName jira.example.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost> - Confluence:
ProxyRequests Off<VirtualHost *>
ServerName confluence.example.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
- JIRA:
nano /etc/httpd/conf/httpd.conf
-
- AFTER:
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf - ADD:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
- AFTER:
systemctl start httpd
chkconfig httpd on
/usr/sbin/setsebool -P httpd_can_network_connect 1
systemctl stop jira
cd /opt/atlassian/jira/conf (or confluence/conf)
cp server.xml server.xml.bak
nano server.xml
- Add the proxyName and proxyPort at the bottom
enableLookups=”false”<Connector port="8080"maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
maxHttpHeaderSize=”8192″
protocol=”HTTP/1.1″
useBodyEncodingForURI=”true”
redirectPort=”8443″
acceptCount=”100″
disableUploadTimeout=”true”
proxyName=”jira.example.com”
proxyPort=”80″ />
enableLookups=”false”<Connector port="8090"maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
maxHttpHeaderSize=”8192″
protocol=”HTTP/1.1″
useBodyEncodingForURI=”true”
redirectPort=”8443″
acceptCount=”100″
disableUploadTimeout=”true”
proxyName=”confluence.example.com”
proxyPort=”80″ />
- Save (ctrl + X … Y … Enter)
systemctl restart httpd
systemctl restart jira