Skip to content

Instantly share code, notes, and snippets.

@sky4git
Created October 13, 2015 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sky4git/c6aab65da059956935c5 to your computer and use it in GitHub Desktop.
Save sky4git/c6aab65da059956935c5 to your computer and use it in GitHub Desktop.
Configure Jira with Apache2 Mod_proxy
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
@sky4git
Copy link
Author

sky4git commented Nov 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment