error in port redirection

Discussion in 'Installation/Configuration' started by Cinabro, Jan 27, 2025.

  1. Cinabro

    Cinabro New Member

    Hi all
    i installed a new fresh ispconfig3
    everything is ok except:
    - don't redirect from 80 or 443 to 8080
    Except this that can be also fair i want do another thing:
    Basically what i need to do redirect user when they reach domain.org go straight to port 8081 (the webmail)
    i tried to change from panel - nothing happened (even restart service)
    tried even with iptables
    any clue?
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    Usually it is not recommended to redirect 80/443 of the panel to 8080. This is how i've set it up:

    Code:
    <VirtualHost *:443>
            SSLEngine on
            SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
            SSLHonorCipherOrder on
            SSLCipherSuite HIGH:!aNULL:!MD5:!3DES:!CBC
            #SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH EDH+aRSA !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
    
            SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
            SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
    
            Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
    
            ServerName panel.domain.tld
            ServerAlias www.panel.domain.tld
    
            SSLProxyEngine on
            ProxyPreserveHost On
            ProxyRequests Off
            ProxyVia Off
            ProxyPass / https://localhost:8080/
            ProxyPassReverse / https://localhost:8080/
            ProxyPass .well-known/ !
    </VirtualHost>
    
    For the webmailer just create a website in ISPConfig and set the DocRoot to the roundcube folder or redirect to the 8081.
     
    Benedict likes this.
  3. Cinabro

    Cinabro New Member

    Thnx!
    Yes i agree with "better not redirect 80 to 8080"
    Main was the email login

    thnx again
     

Share This Page