Join the community today
Register Now

Beta Branch update staticfiles.conf disable html location context

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

  1. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    7:25 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. pamamolf

    pamamolf Well-Known Member

    2,723
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:25 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Editing manually the file to apply the changes and restarting Nginx is enough for this one? :)

    Code:
    /usr/local/nginx/conf/staticfiles.conf
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    7:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup :)
     
  4. pamamolf

    pamamolf Well-Known Member

    2,723
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:25 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Isn't that edit conflicting with the hsts related edit:

    Code:
        location ~* \.(html|htm|txt)$ {
        if ($server_https = 'on') {
            add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
        }
      #add_header Pragma public;
      add_header Cache-Control "public, must-revalidate, proxy-revalidate";
      access_log off;
      expires 30m;
      break;
            }
    I have that edit on my notes so maybe my notes are old :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    7:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    you have old or edited staticfiles.conf ;)