Howto create Proxy Apache in Web-Gui ISP

Discussion in 'Tips/Tricks/Mods' started by Jose Pertuz, Jan 15, 2025.

  1. Jose Pertuz

    Jose Pertuz New Member

    Hi

    For example, I created a subdomain: pos.mysistem.com
    I wish that when I click on the link pos.mysistem.com the connection
    (in the background) is redirected to: http://system-post.com:3050 (another server)
    but keeping the main url pos.mysistem.com
    Can it be done from the ispconfig website? or should I do it through direct .conf

    Debian 12
    ispconfig 3.2.12p1
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do this directly within ISPConfig by putting your proxy rules into the Apache directives field of the website. To to this, you must create pos.mysistem.com either as website or vhost subdomain.
     
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    SSLProxyEngine on
    SSLProxyCheckPeerCN Off
    SSLProxyCheckPeerName Off
    
    RequestHeader set Front-End-Https "On"
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass /.well-known/ !
    ProxyPass / https://system-post.com:3050/
    ProxyPassReverse / https://system-post.com:3050/
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    
     
    till likes this.

Share This Page