Web Proxy Design Queries ?



Hi,

I am trying to implement a typical web proxy. If webserver and web proxy on the same machine then I intend to use shared memory , else sockets.

I have few design/architecture queries regarding the same -

a) What are the ways to find out that webserver/webproxy server are on the same machine ?
If web client is passing request as - webclient <threads> <proxy-server> <URL(http://...>
I am currently finding the IP address of local machine which is running webproxy server
and then comparing that with the <proxy-server> IP address passed from webclient ? Is
there any other way ?

b) How do i know that webserver which is running on a machine is my own webserver? Based on port number ?

c) In the case of multiple clients sending requests to same proxy server and then proxy server fetches response from multiple web server for different requests

Is there any efficient way to figure how to send response back to webclient other than maintaining a table to keep track of which socket reach request are listening/sending data to ?

This essentially is - HOW do i know the response sent by WEBSERVER is for a which particular CLIENT ?

c) Similar scenario as above , but now if i am using shared memory rather than sockets. How would I know when to fetch the data from shared memory ? Do I use standard producer/consumer paradigm ?
Any recommended ways ?

Thanks in advance,
Mahendra
.



Relevant Pages

  • Web Proxy Design Queries ?
    ... If webserver and web proxy on the same machine then I intend to use shared memory, ... I am currently finding the IP address of local machine which is running webproxy server ...
    (comp.os.linux.development.apps)
  • Web Proxy Design Queries ?
    ... If webserver and web proxy on the same machine then I intend to use shared memory, ... I am currently finding the IP address of local machine which is running webproxy server ...
    (comp.lang.c)
  • Re: Basic Question (dumb) regarding security
    ... It is not ok to host a public website on your SBS, but it is ok to host ... setup the network and the webserver properly so that only appropriate ... It would be less secure or meaningful to open more holes in ISA so ... Since ISA is an application server, ...
    (microsoft.public.windows.server.sbs)
  • Re: hide ip address of website (no domain name)
    ... > webserver from any other programs/scanners/etc? ... > will proxy server installed on the box or using host ... > various parts of it that are not on port 80. ... How about installing on of the open source firewalls in front of it and ...
    (Security-Basics)
  • RE: ViewState vs. Database
    ... webserver, but that seems like the best performance to cost ratio I can come ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... to server, webserver, server to database server..). ...
    (microsoft.public.dotnet.general)