Vhost.conf configuration

Discussion in 'Installation/Configuration' started by francoisPE, Jan 9, 2021 at 3:23 PM.

  1. francoisPE

    francoisPE Member HowtoForge Supporter

    Hello,
    My issue is a little bit outside ISPConfig configuration. But it is linked with my server conf with ISP
    I am trying to set up a proxy:
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
    AuthUserFile /etc/backend/back.htpswd
    AuthName "Service"
    AuthType Basic
    Require valid-user
    Options None
    </Proxy>
    ProxyPass "/" "http://localhost:3000/" connectiontimeout=10 timeout=300 keepalive=on
    ProxyPassReverse "/" "http://localhost:3000/"

    This works very well. I access it at : myvhost.tld
    But, I would like to acces it at : myvhost.tld/service
    So I edit my vhost.conf :

    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
    AuthUserFile /etc/backend/back.htpswd
    AuthName "Service"
    AuthType Basic
    Require valid-user
    Options None
    </Proxy>
    ProxyPass "/service" "http://localhost:3000/" connectiontimeout=10 timeout=300 keepalive=on
    ProxyPassReverse "/service" "http://localhost:3000/"

    It doesn't work ! curl http://localhost:3000/ answers "Found. Redirecting to /cluster/ns"

    In my browser, I see : myvhost.tld/cluster/ns instead of myvhost.tld/service/cluster/ns

    I try modify ProxyPassReverse, add Rewriterules, Redirect Permanent... without any success !
     
    Last edited: Jan 11, 2021 at 2:45 PM
  2. francoisPE

    francoisPE Member HowtoForge Supporter

Share This Page