Redirect to ISPConfig in Apache

Discussion in 'Server Operation' started by Artur, Sep 19, 2016.

  1. Artur

    Artur New Member

    Just a tip for those who want to redirect users from more human readable url to ISPConfig panel. I was searching for this and could not find anything on the net. Its nothing fancy but maybe will be useful for the others. What it makes is basically redirecting from /panel to same domain but on ISPConfig port (8080) using SSL so users don't have to remember the port and ssl url.

    1. Create conf file in apache:
    Code:
    nano /etc/apache2/conf-available/ispconfig.conf
    2. Add this content out there:
    Code:
    # ISPConfig redirection
    <Location /panel>
            RewriteEngine On
            RewriteCond %{REQUEST_URI} ^/panel [NC]
            RewriteRule . https://%{HTTP_HOST}:8080 [R=301,L]
    </Location>
    3. Enable config file:
    Code:
    ln -s /etc/apache2/conf-available/ispconfig.conf /etc/apache2/conf-enabled/ispconfig.conf
    4. Restart apache service
    Code:
    service apache2 restart
     

Share This Page