integrate ispconfig vhost into managed web

Discussion in 'Installation/Configuration' started by giftsnake, Jul 29, 2011.

  1. giftsnake

    giftsnake New Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do this e.g with apache mod_proxy. Dont use aliases for this as this would cause ispconfig to run under the web user so that web users would be able to take over your server.
     
  3. giftsnake

    giftsnake New Member

    Thanks for the idea. I looked into documentation and ended up with the following directive:

    Code:
    ProxyRequests Off
    <Proxy *>
       Order deny,allow
       Allow from all
    </Proxy>
    
    SSLProxyEngine on
    ProxyPass        /ispconfig https://localhost:8080/
    ProxyPassReverse /ispconfig https://localhost:8080/
    
    It works great, if I navigate to https://domain.com/ispconfig/. But once I omit the trailing slash, javascript is not redirected properly:
    Code:
    [error] [client IP] File does not exist: /var/www/domain.com/web/js, referer: https://domain.com/ispconfig
    

    edit:
    of course this is easy to fix with a small rewrite:
    Code:
    RewriteRule ispconfig$ https://domain.com/ispconfig/
    
    but I think there has to be something else wrong before!?
     
    Last edited: Jul 29, 2011

Share This Page