Nginx proxy SOAP request
- by user2606078
looking for a right way to accomplish the following:
there is an app that have URL(1) hardcoded and no way/time to change it in the source
http://dev.server.com/example.com/admin/soap/action/index?pr=1
and it should use (and get response from) URL(2)
http://example.com/admin/soap/action/index?pr=1
what should I configure in Nginx (apache as backup used) conf on dev.server.com in order to give that app when it asks URL(1) answer from URL(2)?
On dev.server.com Apache has virtual host: dev.server.com enabled.
Also I've tried to proxy in apache instead of nginx by using ProxyPass:
<Directory /var/www/dev>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
<Location /example.com/admin/soap>
ProxyPass http://example.com/admin/soap
</Location>