Nginx的代理SOAP请求

寻找一个正确的方法来完成以下任务:

有一个应用程序具有URL(1)硬编码,没有任何方式/时间来改变它的来源

http://dev.server.com/example.com/admin/soap/action/index?pr=1 

它应该使用(并获得响应)URL(2)

 http://example.com/admin/soap/action/index?pr=1 

我应该在dev.server.com上configurationNginxconfiguration(apache作为备份使用),以便在从URL(2)询问URL(1)答案时给予该应用程序?

在dev.server.com Apache有虚拟主机:启用dev.server.com。

此外,我已经尝试通过使用ProxyPass在apache而不是nginx中进行代理:

  <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> 

尝试在Nginxconfiguration文件中的这个位置:

 location /example.com/admin/soap/action/index { proxy_pass http://example.com/admin/soap/action/index; } 

一个可能的解决scheme是:

 <Location /example.com/admin/soap/action/index> ProxyPass http://example.com/admin/soap/action/index </Location>