This is a discussion on Apache and WebService question again within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, all I am using Apache 1.3.26 under Debain Woody. I am using Apache as a firewall redirect ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, all
I am using Apache 1.3.26 under Debain Woody. I am using Apache as a firewall redirect all the http request to my win2000 IIS server. At first, I used rewriterule to do pass my request to the win2000 IIS. In my httpd.conf, I have follow setting: <VirtualHost *> ServerName guides.com ServerAlias guides.com *.guides.com RewriteEngine on RewriteLogLevel 9 .... RewriteRule ^/WebServuce/API/(.*) http://100.90.80.3/WebService/API/$1 [P,L] </VirtualHost> I write a webservice under MS.Net and sit in the http://100.90.80.3/WebService/API/mywebservice.asxm When I use IE to browse the webservice http://guides.com/WebService/API/mywebservice.asxm, it works fine and I can get the web service derscription. But once I try to add the webserivice into my project web reference. My VS.net said Unable to download follow files from http://100.90.80.3/WebService/API/my...vice.asxm?wsdl It looks like it try to use my actual win2000 box machine ip address which of course can not be seen from my client (Dev) machine. Then I found that ProxyPass & ProxyPassReverse directive are what I need, so I change my httpd.conf to <VirtualHost *> ServerName guides.com ServerAlias guides.com *.guides.com ProxyPass /WebServuce/API/ http://100.90.80.3/WebService/API ProxyPassReverse /WebServuce/API/ http://100.90.80.3/WebService/API </VirtualHost> But I still got the same result, it looks like my VS.Net 2003 always get back http://100.90.80.3/WebService/API/mywebservice.asxm In the http://httpd.apache.org/docs/mod/mod...html#proxypass, it should pass me back as "http://guides.com/WebService/API/mywebservice.asxm" And thanks for Justin Koivisto's suggestion, I will try useing port-forwarding and ip masquerading to do this later. But I think use "ProxyPassReverse" is ideal. Anyone can give more suggestion? Sorry for my long post. Cheers, Tao |
| Thread Tools | |
| Display Modes | |
|
|