Welcome to Centmin Mod Community
Register Now

Master Branch add VHOST_PRESTATICINC='y' additional include files

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 3, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    add VHOST_PRESTATICINC='y' additional include files

    - For newly created nginx vhosts only. For existng vhosts, would need to add them manually and create the include files themselves for /usr/local/nginx/conf/pre-staticfiles-global.conf and local /usr/local/nginx/conf/pre-staticfiles-local-domain.com.conf where domain.com is your vhost domain name.
    - In nginx vhost templates add 2 additional include files above /usr/local/nginx/conf/staticfiles.conf include file for a global include file /usr/local/nginx/conf/pre-staticfiles-global.conf and local /usr/local/nginx/conf/pre-staticfiles-local-domain.com.conf where domain.com is your vhost domain name. Allows you to add additional nginx rules that would go between default web root location / {} context and /usr/local/nginx/conf/staticfiles.conf. This is NOT for rules that are mean for web root location / {} context.

    Code (Text):
      include /usr/local/nginx/conf/pre-staticfiles-local-domain.com.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
    


    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.