how to setup reverse proxyapache2 drupal problem clean urls

Discussion in 'Server Operation' started by vtapas, Apr 16, 2010.

  1. vtapas

    vtapas New Member

    I have a scenario.A domain
    then there are 4 private computers on which applications are hosted at port 80.
    So when some one from outside access the site it should look
    in apache2.conf where is hosted
    I added
    ProxyPass /site1
    ProxyReversePass /site1
    is it correct ?
    I am able to see
    but when some one logs in from internet to
    it is redirecting to and not taking to page where a successful login will go
    what should I check or do ?
  2. vtapas

    vtapas New Member

    Hi yes you are right.Even then now I am posting a solution since by now I have solved the problem. MySQL/... behind a Reverse Proxy Server (Apache)/dcslr

    I am posting so that if some one else faces the same problem they may get a solution.Which is mentioned on the above link you can go there directly and read it.
    When you install drupal on a server which is behind apache reverse proxy you need to tell that drupal installation about the presence of reverse proxy in your nework.
    That is the core of the problem.
    To achieve this you need to do do following
    in your drupal installation folder go to sites/default/settings.php
    and change the following
    $cookie_domain = '';
    if above both are same then place them same values
    $conf = array(
    'reverse_proxy' => TRUE,
    'reverse_proxy_addresses' => array('',),
    replace it by IP of your apache reverse proxy 
    and uncomment below it
    Hopefully it should work.
    Keywords to search for this are if you are using drupal
    "drupal behind apache reverse proxy"

    You can get same problem if you do not use drupal the thing is any web server running behind a proxy needs to know how to handle requests which are forwarded by proxy.
    Some one if comes across same situation do reply here make a blog etc it will help others.

Share This Page