1

So I have jira installed and I access i through mydomain.com:8080/jira. I'd really like to access i through jira.mydomain.com. I enabled mod_proxy and put the following in an apache vhost:

ServerName jira.mydomain.com

ProxyPreserveHost On
ProxyPass / http://localhost:8080/jira

But, it forwards me to jira.mydomain.com/jira. Which doesn't work. I changed the base URL in jira to jira.mydomain.com also. What's going on here, why does the extra /jira exist?

I installed jira as a war installation as I'm running other apps through tomcat (confluence, hudson etc)

brad
  • 512

2 Answers2

1

Try to add

ProxyPassReverse / http://localhost:8080/jira
radius
  • 9,701
0

Radius you were so close, apparently i need a trailing / after the proxypass directives, so:

ProxyPreserveHost On
ProxyPass / http://localhost:8080/jira/
ProxyPassReverse / http://localhost:8080/jira/

Worked like a charm. I then needed to add a re-write so all the static images/css etc would be mapped:

RewriteEngine On
RewriteRule       ^/jira(.*)$  http://localhost:8080/jira$1 [P,L]

Worked like a charm

brad
  • 512