Results 1 to 7 of 7

Thread: Reverse proxy issue with two web servers

  1. #1
    Join Date
    Apr 2010
    Posts
    37

    Reverse proxy issue with two web servers

    Two web servers at home but only one IP visible to the Internet. How to access each server without using a redirect from a non-standard port? It's possible with a proxy. I have tried to do lot of things but nothing is helping. So I am posting here thinking that someone hanging out there would help me. Please provide some solutions that would be helpful for me to solve this problem.

  2. #2
    Join Date
    Apr 2009
    Posts
    65

    Re: Reverse proxy issue with two web servers

    Once a need for sharing of resources, access control and / or filtering arises, a simple and effective solution is to put a machine between different stakeholders, it can see and act on the data stream. You can consider that, very roughly, more actions are simple and made more automatic one acts on the lower layers of the system, and most treatments are complicated and require more settings you climb to the application layers.

  3. #3
    Join Date
    Apr 2009
    Posts
    69

    Re: Reverse proxy issue with two web servers

    A proxy is a general software posing as a service to users who, according to his whims and configuration required by the administrator makes a request to the actual service and returns the result to user. It is neither a bridge nor a network router within the meaning of terms as a proxy acts at the application level. By the reciprocal of the above principle we can deduce that a proxy allows very fine adjustment of the conditions for passage of motions rather than just depending on the source or destination network, but also based on the contents of the request.

  4. #4
    Join Date
    Apr 2008
    Posts
    240

    Re: Reverse proxy issue with two web servers

    When we talk about HTTP proxy, which comes to mind first is the user control from within a network wanting to leave. But a proxy can also be used to control the requests coming from outside and to a server on the internal network, this is known as reverse proxy. Any request made from outside will be analyzed by the Reverse Proxy. The latter being able to extract information application, it can determine the server name called which is very useful when multiple domains are managed on the same server, browser type to source, the directory and the name of the page on the site ... etc.. Once data is extracted it thinks fit, he made a request on an HTTP server inside the network and sends the response to external applicants. The solution to our original problem becomes obvious: if the proxy makes the request to the web server after extracting all the elements, it can attack multiple servers depending on the content of this request.

  5. #5
    Join Date
    Feb 2010
    Posts
    533

    Re: Reverse proxy issue with two web servers

    The number of use cases are very important, the solution presented in this section considers two domain names that arrive on the same ip and that should be separated into two servers. Treatment based on page names is an interesting exercise if the discovery is left to readers. Apache has a module of all functions necessary to act as a proxy (reverse or not). Before anything else, we must indicate in the configuration file to load this module (eg: LoadModule proxy_module modules / libproxy.so - Apache 1.3.x - / modules / mod_proxy.so - Apache 2.x). Only those functions will be used to repay, so it is not necessary (or desirable) to leave the outbound proxy asset, the ProxyRequests Off allows this inhibition.

  6. #6
    Join Date
    Feb 2009
    Posts
    81

    Re: Reverse proxy issue with two web servers

    The machine will receive requests to multiple domains, it is necessary to cover the virtual hosts (vhosts) to separate treatments. A first vhost takes configuration options from the main site. Once this conversion is done, this site can be tested, it must continue to work exactly as before. To address the request to the new domain, a second vhost is created, but this time without directive "DocumentRoot". In this vhost, the reverse proxy is used by the two directives ProxyPass "and" ProxyPassReverse "Taking each parameter in the base directory (usually" / ") and the URL to make the application server side. They will load to get the information from the second server (the one that is normally invisible from the outside).

  7. #7
    Join Date
    Aug 2008
    Posts
    129

    Re: Reverse proxy issue with two web servers

    I had to use the following files to load the support Proxying:
    modules / mod_proxy.so, modules / mod_proxy_connect.so, modules / mod_proxy_http.so (probably specific to Apache 2). Not to redirect an entire vhost, but only a sub-directory (Virtual Directory?, It is possible to do something like:
    Code:
     <VirtualHost *:80> 
      ServerName www.toto.org 
      DocumentRoot / home/apache2/htdocs 
      <Location /isedep/> 
      ProxyPass http://192.168.0.3/ 
      ProxyPassReverse http://192.168.0.3/ 
      </ Location> 
      </ VirtualHost>
    It is also possible to use the Auth * directives in this location (but beware, the site "remote" does not seek its own authentication).

Similar Threads

  1. How to trace proxy servers?
    By Mellen!camp in forum Networking & Security
    Replies: 1
    Last Post: 20-11-2011, 08:44 PM
  2. Different types of Proxy Servers
    By Inigo in forum Networking & Security
    Replies: 4
    Last Post: 08-01-2011, 07:07 PM
  3. Reverse proxy for internal requests ?
    By dlaperle in forum Networking & Security
    Replies: 4
    Last Post: 07-10-2010, 06:23 PM
  4. How to use of reverse proxy technology to protect Web servers
    By Umberto-Micro in forum Technology & Internet
    Replies: 5
    Last Post: 14-02-2010, 05:53 AM
  5. Replies: 3
    Last Post: 24-10-2009, 12:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,435,117.52939 seconds with 17 queries