I have an OS X server running Apache, serving www.mydomain.be
I also have Jira running, standalone on www.mydomain.be:8080, and I would like to be able to access Jira via jira.mydomain.be.
In order to achieve this I added:
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} jira.mydomain.be
RewriteRule ^/(.*)$ http://localhost:8080/$1 [P,QSA,L]
</IfModule>
When surfing to jira.mydomain.com it redirects me but doesn't use the proxy. That's why I get http://localhost:8080 in my address bar...
Suggestions?
I appended the above to the default site config under /etc/apache2/sites.