I am fairly new to AWS and have been trying to solve a problem. The problem statement; the company i work for currently have a cloud subscription with Atlassian for Jira and Confluence products. They want to move to a self-hosted license and so asked me to see what could be done.
I did the following steps:
- Setup an Amazon Ec2 Instance
- Associated an Elastic IP
- In Route 53 I created a zone and did the necessary with Go Daddy to add name servers.
- I installed Jira on the EC2 instance
- I installed Confluence on the EC2 Instance
Now for the sake of this let’s say my instance domain is ec2compute.amazonaws.com. Jira installed on port 8080 and confluence on 8090. If I navigate in my browser to ec2compute.amazonaws.com:8080 and ec2compute.amazonaws.com:8090 I get to the setup pages of Jira and Confluence.
So working as expected so far. Except I want to use my own domain – more importantly a sub-domain for Jira and a sub-domain for Confluence.
Going back to my domain, as I said i set the domain up lets say example.com in Route 53 and did the go daddy nameserver assignment. I installed apache on Ec2 and now if i go example.com i get the apache welcome page on my server…and if i go to example.com:8080 I get to the jira page and example.com:8090 i get to the confluence page.
What I want to do though is point jira.example.com to get to the jira page and confluence.example.com to get to the confluence page. I have tried updated the httpd.conf file with a virtual host for each but with no success.
Can someone please point me in the right direction ?
2
Answers
This should do (you can put it at the bottom of the
httpd.conf
or, even better, as separate.conf
file inconf.d
subfolder:Use proxies when installing Confluence and Jira on the same server. To actually configure Confluence and Jira at separate urls, you’ll also edit each app’s
server.xml
(among other things). Atlassian has documents that instruct on Using Apache with mod_proxy and Proxying Atlassian server applications with Apache HTTP Server.