Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Strip "Cookie" header on static files?

Discussion in 'Centmin Mod Insights' started by RoldanLT, Jan 1, 2017.

  1. RoldanLT

    RoldanLT Well-Known Member

    4,072
    983
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,371
    Local Time:
    12:54 PM
    1.11
    10.2
    I want to implement this without using separate sub domain.
    I tried using openresty headers-more-nginx-module.
    • more_set_headers
    • more_clear_headers
    on staticfiles.conf, but still not working.

     
  2. eva2000

    eva2000 Administrator Staff Member

    32,368
    7,184
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,929
    Local Time:
    2:54 PM
    Nginx 1.13.x
    MariaDB 5.5
    technically you can't without using a different domain or subdomain from main web app's domain
     
    • Informative Informative x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    4,072
    983
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,371
    Local Time:
    12:54 PM
    1.11
    10.2
    Okay, I'll leave it then :).
    Thanks!