Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch update vhost template default try_files

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

  1. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    8:20 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. pamamolf

    pamamolf Well-Known Member

    2,721
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    1:20 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Wondering if the new rule is working out of the box for IPB friendly urls......

    Code:
    try_files \$uri \$uri/ /index.php?q=\$uri&\$args;
    Anyone test it?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    8:20 AM
    Nginx 1.13.x
    MariaDB 5.5
    That new rule is for scripting only as it has escaped backslashes for $ and & characters. The resulting rule within your vhost should loose the backslashes. See Beta Branch - add VHOST_PRESTATICINC='y' additional include files

    it becomes like
    Code (Text):
      # Wordpress Permalinks example
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
     
    • Informative Informative x 1