How to redirect/proxy requests for webservice DLL?

Alles, was den Apache betrifft, kann hier besprochen werden.

How to redirect/proxy requests for webservice DLL?

Postby Flattit » 26. November 2018 13:14

Hallo,

I have a server on which Apache 2.4 is configured to handle the execution of a webservice DLL.

In the httpd.conf file I added these lines...

ScriptAlias /ISAPI/ "c:/Apache24/ISAPI/"

<Directory "c:/Apache24/ISAPI">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler isapi-handler .dll


I can invoke the WSDL (http://myServerA.com/ISAPI/ServersSoapISAPI.dll?WSDL) and the webservice methods correctly.

Now I installed on another server (let's call it myServerB) Apache 2.4 and I'd like to configure Apache in a way that it receives the requests for the above webservice and redirects them to myServerA. I want that the DLL is handled by myServerA and myServerB only turns to it the requests.

myServerB is configured to use ProxyPass and I'd like to use it to achieve the goal.

On myServerB I added these lines...

ProxyPass /ISAPI/ http://myServerA/
ProxyPassReverse /ISAPI/ http://myServerA/


... but I get this error when I try to call http://myServerB.com/ISAPI/ServersSoapISAPI.dll?WSDL from the webbrowser...
Forbidden
You don't have permission to access /ServersSoapISAPI.dll on this server.

Could you kindly help me in solving the problem?

Thanks,
Federico
Flattit
 
Posts: 1
Joined: 26. November 2018 12:48
XAMPP version: .
Operating System: Win10

Re: How to redirect/proxy requests for webservice DLL?

Postby Nobbie » 26. November 2018 19:43

Flattit wrote:Forbidden
You don't have permission to access /ServersSoapISAPI.dll on this server.


Unfortunately, for an unknown reason you skipped the most important information all in all: the error code. It should be either 404 oder 403 - but as long as you suppress it, nobody can help you.

P.S.: Anyway, your configuration is outdated and wrong. For Apache 2.4 you MUST NOT use "Allow From ...". Instead of

Code: Select all
Order allow,deny
Allow from all


you should use

Code: Select all
Require all granted


And please(!) urgently read https://httpd.apache.org/docs/2.4/upgrading.html
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: Perrywalton and 29 guests