Join the community today
Become a Member

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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    4:24 AM
    Nginx 1.25.x
    MariaDB 10.x
    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 you manually creat the file at /etc/centminmod/ 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 menu option 2 or /usr/bin/nv or 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

    Jan 10, 2016
    Kiev, Ukraine
    Local Time:
    9:24 PM
    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 :)