Proxypass not working

Discussion in 'Installation/Configuration' started by jacksharing, May 20, 2014.

  1. jacksharing

    jacksharing New Member

    Hi all,

    I want my sub.domain.tld to divert to my other internal server. On my sub.domain.tld's Apache Directive box i put:

    <VirtualHost *:80>
    Servername sub.domain.tld
    ProxyPreserveHost On
    ProxyPass / http://192.168.1.22:80/
    ProxyPassReverse / http://192.168.1.22:80/
    </VirtualHost>

    but when i try to access the site, it still showing the ISPConfig default index page.

    Any idea?

    thanks
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    That can't work. The content from the directives box is put into the VirtualHost section.

    Try putting just
    Code:
    ProxyPreserveHost On
    ProxyPass / http://192.168.1.22:80/
    ProxyPassReverse / http://192.168.1.22:80/
    in it.
     
  3. jacksharing

    jacksharing New Member

    Perfect! Its working!

    Thanks a lot Croydon!
     

Share This Page