Link to home
Start Free TrialLog in
Avatar of beer9
beer9Flag for India

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

#Rewrite rule for JIRA
RewriteCond     %{HTTP_HOST}    ^jira.example.com    [NC]
RewriteRule     ^/(.*)$ http://54.55.56.57:8080/$1    [P]

Open in new window


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
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Do you have mod_proxy enabled?
Avatar of beer9

ASKER

Yes, I think issue could be related to ProxyPassReverse directives
ASKER CERTIFIED SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial