Learn about Centmin Mod LEMP Stack 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

    30,856
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,396
    Local Time:
    1:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 2
  2. abs0lut3

    abs0lut3 New Member

    7
    2
    3
    Jan 10, 2016
    Kiev, Ukraine
    Ratings:
    +3
    Local Time:
    5:24 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 :)