Skip to content
Snippets Groups Projects
Select Git revision
  • noblogs default
  • noblogs-5.7.1
  • upstream
  • noblogs-5.7
  • noblogs-5.6new
  • upstream5.5.1
  • noblogs28dic
  • upstream28dic
  • noblogs-5.5.1
  • noblogs-5.4.2
  • noblogs-5.4_seconda
  • noblogs-5.4
  • noblogs-7c
  • wp5.2.3p3
  • mergedbconf
  • noblogs-5.7.1
  • noblogs.5.7.0p1
  • noblogs-5.7.0
  • noblogs-5.6p3
  • noblogs5.6p2
  • noblogs-5.6p1
  • noblogs-5.6
  • noblogs-5.4.2p1
  • noblogs-5.4.2
  • noblogs-5.4.1
  • noblogs-5.4
  • noblogs-p5.4
  • noblogs-5.3.2p2
  • noblogs-5.3.2p1
  • noblogs-5.3.2
  • noblogs-5.3
  • noblogs-5.2.3p4
  • noblogs-5.2.3p3
  • noblogs-5.2.3p2
  • noblogs-5.2.3p1
35 results

wp-nginx-map.php

Blame
    • shammash's avatar
      a1b49a5a
      Add blog->site map · a1b49a5a
      shammash authored
      
      We want per-blog traffic stats.
      
      Apache noblogs is configured with a single virtualhost, we cannot use the
      virtualhost name (%v) for these stats, because everything will appear as
      noblogs.org .
      
      We cannot even use the Host header (%{Host}i) because the virtualhost wildcard
      configuration allows for bogus blog names (e.g. cavalle55e.noblogs.org instead
      of cavallette.noblogs.org).
      
      With this map nginx can lookup a valid blog name (or default to noblogs.org for
      invalid names) and pass it to apache with an internal header (e.g.
      X-AI-Noblogs-Site ). Apache will then use this header to produce correct stats.
      
      Signed-off-by: default avatarshammash <shammash@autistici.org>
      a1b49a5a
      History
      Add blog->site map
      shammash authored
      
      We want per-blog traffic stats.
      
      Apache noblogs is configured with a single virtualhost, we cannot use the
      virtualhost name (%v) for these stats, because everything will appear as
      noblogs.org .
      
      We cannot even use the Host header (%{Host}i) because the virtualhost wildcard
      configuration allows for bogus blog names (e.g. cavalle55e.noblogs.org instead
      of cavallette.noblogs.org).
      
      With this map nginx can lookup a valid blog name (or default to noblogs.org for
      invalid names) and pass it to apache with an internal header (e.g.
      X-AI-Noblogs-Site ). Apache will then use this header to produce correct stats.
      
      Signed-off-by: default avatarshammash <shammash@autistici.org>