How do I change default phpmyadmin & squirrelmail alias on Nginx?

Discussion in 'ISPConfig 3 Priority Support' started by concept21, Nov 8, 2022.

  1. concept21

    concept21 Active Member

    Please help.
    I found them very ugly and a big threat. :eek:
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Nginx does not support global aliases in the way that apache does. You have basically two options:

    a) Create a website for phpmyadmin and your webmail client like phpmyadmin.yourdomain.tld and webmail.yourdomain.tld and then install a copy of these applications into that site.
    b) You have to add custom rewrite rules for phpmyadmin and the webmail client in each site that shall provide a URL for them, you can find such rewrite rule examples e.g. here (chapter 8.1) https://www.howtoforge.com/tutorial...u-18-04-nginx-bind-dovecot-and-ispconfig-3/2/ (take care to adjust the PHP socket path to match the PHP version of the OS you use). Same for RoundCube webmail https://www.howtoforge.com/tutorial...u-18-04-nginx-bind-dovecot-and-ispconfig-3/3/ chapter 15.
     
    concept21 likes this.
  3. concept21

    concept21 Active Member

    Hello Till,
    What if I just need one and only one primary domain vps.example.com as the main entry to all web sites email box and mysql copies hosted by myself?

    For now my installation is very good. I can access all the mysql copies and every individual email boxes through:
    https://vps.example.com:8081/squirrelmail/
    https://vps.example.com:8081/phpmyadmin/

    I am just not happy with the tails /squirrelmail/ and /phpmyadmin/ . What is the simplest way to get rid of them and to replace them with a random string? :rolleyes:
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the nginx apps vhost file. Also take care to copy the nginx apps vhsot template from /usr/local/ispconfig/server/conf/ to /usr/local/ispconfig/server/conf-custom/ and also /usr/local/ispconfig/server/conf-custom/install/ folder and edit both copies in the same way.
     
  5. concept21

    concept21 Active Member

    Not as easy as Apache2. o_O
     

Share This Page