Nginx proxy SOAP request

Posted by user2606078 on Server Fault See other posts from Server Fault or by user2606078
Published on 2014-05-26T10:47:19Z Indexed on 2014/05/27 9:30 UTC
Read the original article Hit count: 202

Filed under:
|
|

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>

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about nginx