Apache and WebService question again

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-29-2004
tao lin
 
Posts: n/a
Default Apache and WebService question again

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0