Join the community today
Register Now

Beta Branch update nginx vhost generator routines support second IP

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 13, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:00 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update nginx vhost generator routines support second IP

    Support secondary dedicated IP configuration for centmin mod nginx vhost generator, so out of the box, new nginx vhosts generated will use the defined SECOND_IP=111.222.333.444 where the IP is a secondary IP addressed added to the server. You define SECOND_IP variable is centmin mod persistent config file outlined at http://centminmod.com/upgrade.html#persistent you manually creat the file at /etc/centminmod/custom_config.inc and add SECOND_IP=yoursecondary_IPaddress variable to it which will be registered with nginx vhost generator routine so that any new nginx vhosts created via centmin.sh menu option 2 or /usr/bin/nv or centmin.sh menu option 22, will have pre-defined SECOND_IP ip address set in the nginx vhost's listen directive.

    so instead of

    listen 80;

    with SECOND_IP set it will become

    listen ipaddress:80;


    allow you to use a different server IP for new nginx vhosts generated

    Continue reading...

    123.09beta01 branch
     
  2. abs0lut3

    abs0lut3 New Member

    7
    2
    3
    Jan 10, 2016
    Kiev, Ukraine
    Ratings:
    +3
    Local Time:
    12:00 PM
    1.9.12
    MariaDB 10.1
    So, as far I understand, this variablje is a subject to change when new ip needer for new vhost.
    Thank you, was thinking about it already (editing the configs manually ^))...
    Now i better waste this time to post this message here
    :)

    p.s Adding/removing ips on a system level will be great option too :)