Proxy or redirect?

Discussion in 'Installation/Configuration' started by tennents, May 16, 2011.

  1. tennents

    tennents New Member

    hi all,

    this is the scenario:
    domain www.company.org on port 80 --> company's website hosted on ispconfig

    domain wiki.company.org on port 80 --> variuos services "identified by the folder" (i.e. /mantis --> the mantis interface hosted on an internal server, say 192.168.0.17; /trac --> hosted on 192.168.1.18:9000, ecc ecc)

    how can I proxy/redirect the connection to wiki.open-one.org to the correct server?

    now i'm using this rules
    Code:
    <Proxy *>
    	Order deny,allow
    	Allow from all
    </Proxy>
    
    ProxyPass /trac/ http://192.168.1.18:9000/trac/
    ProxyPassReverse /trac/ http://192.168.1.18:9000/trac/
    
    redirect /trac /trac/
    
    in a standard apache2 installation and it proxyes the connection to the specified server...

    in ispconfig 3 if a put in the apache directives field of the domain this configuration
    Code:
    
    <Proxy *>
    	Order deny,allow
    	Allow from all
    </Proxy>
    ProxyPass /trac/ http://192.168.1.18:9000/trac/
    ProxyPassReverse /trac/ http://192.168.1.18:9000/trac/
    
    redirect /trac /trac/
    a get a ERROR 403 or ERROR 500 message...

    mod proxy is enable by a2enmod proxy...
    can anyone help me??

    thanks!
     
    Last edited: May 16, 2011
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the error.log of the website, you should find the reason for the error listed there.
     
  3. tennents

    tennents New Member

    thanks till... mod_proxy enabled but not the proxy_http!!! :wall:
     

Share This Page