Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: proxy pass subcontext and trns ID |
|
Author |
|
mohamedilyas
Joined: 03 Apr 2024 Posts: 10 Location: India
|
Posted: Wed 26 Jun '24 13:14 Post subject: proxy pass subcontext and trns ID |
|
|
Hi All,
I am trying to proxypass a api call from apache to jboss but failing and providing 403 response.
I have tried below methods please help me on this.
RewriteRule "^/upi/(.*)" "http://1.2.3.4:8888/online/publisher/upi/$1" [P,R]
ProxyPassReverse "/olive/publisher/upi/" "http://1.2.3.4:8888/online/publisher/upi/"
other method:
ProxyPass "/upi/*" "http://1.2.3.4:8888/olive/publisher/"
ProxyPassReverse "/upi/" "http://1.2.3.4:8888/olive/publisher/"
main URL:
Webserver hit receive as : https://quarters.com/upi/ReqBalEnq/2.0/urn:txnid:INTc1db8ff40a3
need to proxy to Appserver URL : https://1.2.3.4:8888/online/publisher/upi/ReqBalEnq/2.0/urn:txnid:INTc1db8ff40a3 |
|
Back to top |
|
mohamedilyas
Joined: 03 Apr 2024 Posts: 10 Location: India
|
Posted: Thu 27 Jun '24 3:27 Post subject: proxy pass subcontext and trns ID |
|
|
Can anyone give me a suggestion to overcome this issue |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 27 Jun '24 9:28 Post subject: |
|
|
QSA
The reversed URL should match the other one
Code: |
ProxyPass "/online/publisher/upi/" " https://1.2.3.4:8888/online/publisher/upi/"
ProxyPassReverse "/online/publisher/upi/" " https://1.2.3.4:8888/online/publisher/upi/"
|
If the URL does not match you need mod_proxy_html to get it working. But maybe it doesn't work at all. |
|
Back to top |
|
|
|
|
|
|