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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:24 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  2. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    2:24 AM
    Nginx-1.29.x
    MariaDB 10.6.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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:24 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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;