beer9
asked on
URL is changing after rewrite with proxy flag
I am running a JIRA server behind a apache web server and using rewrite with proxy flag to serve it.
I have below entry in httpd.conf
But when I access jira.example.com then the URL in my browser changes from jira.example.com to http://54.55.56.57:8080. I am not sure what I am doing wrong. I do not want URL to be changed
I have below entry in httpd.conf
#Rewrite rule for JIRA
RewriteCond %{HTTP_HOST} ^jira.example.com [NC]
RewriteRule ^/(.*)$ http://54.55.56.57:8080/$1 [P]
But when I access jira.example.com then the URL in my browser changes from jira.example.com to http://54.55.56.57:8080. I am not sure what I am doing wrong. I do not want URL to be changed
Do you have mod_proxy enabled?
ASKER
Yes, I think issue could be related to ProxyPassReverse directives
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.