Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Domain Vhost Conf

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gasak, Aug 28, 2017.

  1. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    12:26 PM
    1.13.0
    10.1.23-MariaDB
    Please fill in any relevant information that applies to you:
    • CentOS Version: 6 64bit
    • Centmin Mod Version Installed: 23.09beta01
    • Nginx Version Installed: 1.13.4
    • PHP Version Installed: 5.6.31
    • MariaDB MySQL Version Installed: 10.1.26
    • When was last time updated Centmin Mod code base? : run centmin.sh menu option 23 submenu option 2
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc? No
    Hi @eva2000,

    Is there any way of precompile settings for domain vhost conf so that whenever I add domain with option 2 this below line automatically commented out?

    PHP:
    #try_files $uri $uri/ /index.php?q=$uri&$args;
    So I don't need to edit domain.com.conf every time I add a domain to the server. Please advise. Thank you.
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,871
    8,070
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,429
    Local Time:
    3:26 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    12:26 PM
    1.13.0
    10.1.23-MariaDB
    Ok I'll give a shot. Thank you.
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,871
    8,070
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,429
    Local Time:
    3:26 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  5. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    12:26 PM
    1.13.0
    10.1.23-MariaDB
    Centmin is so damn awesome! Thanks a lot @eva2000 You're incredible ;)
     
    • Like Like x 1
    • Agree Agree x 1
..