Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by Colin B Maharaj
Thu, 01 May 2008 02:40
Virtual Path to a certain port
Author: Colin B Maharaj
Date: Thu, 01 May 2008 02:40
Date: Thu, 01 May 2008 02:40
18 lines
1597 bytes
1597 bytes
Hi all, I have a few applications on the same machine each with a web server on their own respective ports. I want to create a virtual directory or path so that if I browse to the machine on port 80 and path service1 it goes to port 8081 on the same PC...etc etc... e.g. http://192.168.0.100/service1 -> http://192.168.0.100:8081 http://192.168.0.100/service2 -> http://192.168.0.100:8082 What is the best way to approach this. NOTE: The applications use the unique IP of the 'logging in' clients to be able to authenticate, however through this arrangement, the ip may not propagate to the services. How should this be handled Thanks all!! Colin B Maharaj
Re: Virtual Path to a certain port
Author: Remy Lebeau (TeamB)
Date: Thu, 01 May 2008 10:08
Date: Thu, 01 May 2008 10:08
24 lines
1930 bytes
1930 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:48192dad$1@newsgroups.borland.com... > I want to create a virtual directory or path so that > if I browse to the machine on port 80 and path service1 > it goes to port 8081 on the same PC...etc etc... > e.g. > > http://192.168.0.100/service1 -> http://192.168.0.100:8081 You need to have a web server running on port 80. When it receives a request for '/service1', it needs to send back a 302 response that includes a 'Location: http://192.168.0.100:8081' header. The client will then know to connect to port 8081 instead. > http://192.168.0.100/service2 -> http://192.168.0.100:8082 Likewise, when the web server on port 80 receives a request for '/service2', the 302 response needs to have a 'Location: http://192.168.0.100:8082' header. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads