Re: [PHP] Web server request redirection

2003-03-27 Thread David Otton
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote:

Ray Hunter wrote:

They are two:
1/ php+apache/linux webserver (reachable from outside)
2/ iis/w2k running web service (behind firewall)

  You can also create scripts that receive post data and then submit that
  data to another server via php or other scripting language.

Yeah, that's what I was asking for: how?
I can simply catch the outer request via $HTTP_RAW_POST_DATA but don't 
know, how most effeciently process the result coming from windows machine.

I would suggest configuring Apache as an HTTP proxy, rather than trying
to redirect requests with PHP scripts.

More details here

http://www.devshed.com/Server_Side/Administration/ApacheProxy/page1.html

With some forethought, you can probably use this to protect your IIS
machine from malicious requests, too.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Web server request redirection

2003-03-27 Thread Jan Walter
David Otton wrote:
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote:
I would suggest configuring Apache as an HTTP proxy, rather than trying
to redirect requests with PHP scripts.
More details here

http://www.devshed.com/Server_Side/Administration/ApacheProxy/page1.html

With some forethought, you can probably use this to protect your IIS
machine from malicious requests, too.
I've thought, this would be the most native way but apache experts 
around me didn't know it.

ProxyPass /melonfire/ http://www.melonfire.com/ directive seems to do 
the job. I'll try it, thanx alot!

		John.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Hi,

I have written a small webservice in M$ VS.NET (for some political 
reasons), which needs IIS to run.

I would like not to open M$ IIS server for outer requests, but enable 
access just through linux/apache(/php) webserver instead.

Is there any simple way, how to resend (at least POST/GET) requests in 
their original form to another webserver behind firewall a send its 
answer back?

I tried fsockopen which gets the result OK. However this approach would, 
as I suppose, demand to parse answers from the server for Content-Type, 
etc. Is there anything more simple?

Thanx for any hint
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Ray Hunter wrote:
 Are both servers running on the same computer? If so you can send data
 via the port number they are on.
They are two:
1/ php+apache/linux webserver (reachable from outside)
2/ iis/w2k running web service (behind firewall)
 You can also create scripts that receive post data and then submit that
 data to another server via php or other scripting language.
Yeah, that's what I was asking for: how?
I can simply catch the outer request via $HTTP_RAW_POST_DATA but don't 
know, how most effeciently process the result coming from windows machine.

Thanx
John.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php