Can you help setup Jira and Confluence on Linux with Apache reverse proxy using SSL?

Hey all you smart people out there.  I've got a functioning JIRA and Confluence environment using Apache and reverse proxy using SSL on Windows.  We've been having a lot of problems with crashing, and I've been asked to move it to Linux.  I'm not much of a Linux guru, but I do have my RHCSA so I can get around.  I am struggling with this environment though, and I'm wondering if anyone could help out with some of the configs like the httpd.conf and server.xml.  

Also, I'm hoping I can setup a good test environment with a self-signed cert, but I haven't gotten that working yet.  Do you know if it's even possible in this config?

I have a basic JIRA install working but other than that I've been struggling.  

Thanks,

Joe

1 answer

 

httpd.conf:

SSLPassPhraseDialog  builtin
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout  300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin

NameVirtualHost xx.xx.xx.xx:80
NameVirtualHost xx.xx.xx.xx:443

#
# Note that in my configuration, virtual hosts on 80 do redirect on 443. 
# We do not accept http traffic. Virtual host on port 80 omitted.
#

<VirtualHost jira.foo.com:443>
   ServerName jira.foo.com

   # Easy, right ? I use AJP, but you can simply use another protocol
   ProxyPreserveHost   On

   ProxyPass / ajp://127.0.0.1:8515/
   ProxyPassReverse / ajp://127.0.0.1:8515/

   # SSL
   SSLEngine on
   SSLProtocol all -SSLv2

   SSLCertificateFile /etc/httpd/conf/server.crt
   SSLCertificateKeyFile /etc/httpd/conf/private.key
   SSLCertificateChainFile /etc/httpd/conf/intermediate.crt
   SSLCipherSuite HIGH:!aNULL:!MD5


</VirtualHost>

 

Server.xml - no real change

Anyway:

  1. Make sure JIRA is listening to the port above (in my example 8515, by default 8080)
  2. No ssl needed between HTTPD & JIRA, unless you want to be paranoid. In this case the setup will be a bit different

 

"We've been having a lot of problems with crashing" - I'm not sure that if you move to Linux, things will be suddenly ok. Most probably, you are moving the problems, too smile

Edited: some explanations

True, it's worth looking into the causes of crashes before assuming that a change of OS is going to fix it. If the problem is an addon, you're not going to find much change (although it's Linux, so it's going to be easier to debug, fix and maintain...) On the bright side, Linux does tend to crash less than Windows, and a clean setup (rather than copying everything) is far more likely to land you with a stable system.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,086 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot