I currently use JIRA over an IP Address. I would like to configure it so I can use it over my domain name http://jira.example.com . I went through the documentation (http://confluence.atlassian.com/display/JIRA044/Integrating+JIRA+with+Apache), but couldn't find anything that could help me. I'm using JIRA 4.4.3 on a Windows Server 2003 SP2.
Is JIRA the only application running on that server? Or more specific: is it the only application that you would want to listen on port 80 so it can be reached through http://jira.example.com ?
If yes you can:
- Set up a DNS A-record that points jira.example.com to the IP address of your server.
- Modify the file server.xml so the embeded JIRA Tomcat listens on port 80:
Find the following code in server.xml...
<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/>
...change the connector port to 80...
<Connector port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/>
...and restart JIRA.
Please keep in mind that it takes a while for DNS changes to become active.
And don't forget to change the base URL in the JIRA administration.
Nic is right. You need a web server if you want to run the two applications on the same port.
Atlassian has a pretty good documentation about how to configure Apache.
In terms of tuning Confluence and JIRA for a high load, it is recommended to use a web server as well.
Yup, you'll need Apache or something. What I usually set up is set up something like:
The port numbers don't really matter, as long as they don't clash with anything (also, keep it simple - don't use a connector port below 1024). Remember to set your base urls in the application to the proxied addresses, and it'll all look fine.
So you're running something else on that port already. Did your previous installation shut down ok ? What else have you configured to run on the server?
Remember that if you're trying to run two web services (e.g. a Jira and a Confluence) on one server, you still need to run them on separate ports, and use a web-server front end (like Apache, as discussed) to route incoming requests to the right port if you don't want to specify the port on the urls in use.
The command "netstat" should tell you what programs are holding which ports open.
Hi Nic ,
netstat says no program using port 80 .
Jira and Confluence on separate tomcat .
But there can be a possibility that previous installation did not shut down correctly ,though the process was not running there was a message saying "Unable to remove catalina.pid" .
Can this be a reason ? how to tackle this ?
I modified the server.xml of Jira the way you showed above however it gives an error in log and Jira is not accessible . log says the address already in use.
Keep in mind that the changes to server.xml I described above apply only when you want to run JIRA on port 80 without an Apache webserver in front of it! (as this was a possible answer to the question of the OP)
Your JIRA most likely does not start now because the Apache webserver you installed is already listening on port 80.
Your JIRA and Confleunce server.xml files have to be configured differently in order to work behind a webserver. Please read up on the following Atlassian documentation:
Hi Thomas ,
You are right , I found the port 80 being listened by a process called httpd . I was not aware of the apache server . There was proxy setting as below in the httpd.conf file
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
so just uncommented below lines in the server.xml
<Connector port="8009" redirectPort="8443" enableLookups="false" protocol="AJP/1.3" URIEncoding="UTF-8"/>
and now Jira is running on port 80 .
Once again thanks alot for your help.
I am currently accessing JIRA from Ip address, I mapped a DNS jira.intra.xyz.comto the Ip address to acces JIRA from jira.intra.xyz.co, edited the base URL and editing server.xml to
After this I am not able to access JIRA from both IP address and DNS, When I undo the server.xml and kept the base url as jira.intra.xyz.com, then I am able to access through Ip address.
What have I done wrong, how to access JIRA through DNS?
After you made the changes to the server.xml file you couldn't reach JIRA neither throught the IP address nor the URL http://jira.intra.xyz.com?
Are you sure the domain name jira.intra.xyz.comis pointing to the right IP address? Can you ping your server using that domain name?
Is there anything else running on port 80 on this server? You would notice this in the log file. JIRA wouldn't start and an error message would be in the log.
I changed my port to 80 as suggested and rebooted the server. When I tried to log back in nothing happened.
I cahnged server.xml back to 8080 and tried again. I started jira manually as follows :
jira@jira:/opt/atlassian/jira/bin$ sudo ./start-jira.sh
To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira2
.... .NMMMD. ...
.IMMMMMM. .NMMMN. .MMMMMN,
Version : 7.2.4
If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide
Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Still nothing hapenned. Our jira server is down, any ideas how I can get it back up?
I'm afraid that's too vague a question to help you with. The answer you need is on the Apache page you've already quoted. It is possible to do it without Apache, but that does lose you a lot of flexibility if you need it to co-exist with other web-based systems. You could also use IIS instead of Apache, although I'm not personally too familiar with that (start at http://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+IIS )
Could you explain which bits of the Apache page aren't making sense to you?
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot