Created
October 13, 2015 06:09
-
-
Save sky4git/c6aab65da059956935c5 to your computer and use it in GitHub Desktop.
Configure Jira with Apache2 Mod_proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Insert following in file /opt/atlassian/jira/conf/server.xml | |
below the main connector | |
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" | |
proxyName="jira.atlassian.com" proxyPort="80"/> | |
Restart Jira: | |
sudo service jira stop | |
sudo service jira start | |
----------------------------------------------------------------------- | |
Insert in /etc/apache2/sites-enabled/000-default.conf | |
inside <VirtualHost *:80> tag | |
<Proxy> | |
Require all granted | |
</Proxy> | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyPass / http://localhost:8080/ | |
ProxyPAssReverse / http://localhost:8080/ | |
Restart apache: Sudo service apache2 restart | |
------------------------------------------------------------------------------------------ | |
In case mod_proxy is not install or enabled Please do the following | |
Step 1: Install the module | |
sudo apt-get install libapache2-mod-proxy-html | |
Step 2: Installing the dependency libxml2-dev | |
apt-get install libxml2-dev | |
Step 3: Load the module | |
a2enmod proxy proxy_http | |
apt-get install libxml2-dev | |
Restart apache: Sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Confluence please read this article: https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html