Changes between Version 71 and Version 72 of DevelopmentServer


Ignore:
Timestamp:
03/15/12 13:45:13 (5 years ago)
Author:
chris
Comment:

varnish documentation updated

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentServer

    v71 v72  
    111111} 
    112112 
     113acl local { 
     114  "localhost";         // myself 
     115  "127.0.0.1";         // myself 
     116  "81.95.52.78";       // this machines main ip address 
     117  "81.95.52.79";       // this machines 2nd ip address 
     118  "81.95.52.80";       // this machines 3rd ip address 
     119} 
     120 
     121 
    113122sub vcl_recv { 
    114123 
     
    118127    ## Pass cron jobs and server-status 
    119128    if (req.url ~ "cron.php") { 
    120       return (pass); 
    121     } 
    122     if (req.url ~ ".*/server-status$") { 
    123       return (pass); 
     129      if (client.ip ~ local) { 
     130        return (pass); 
     131      } 
     132      else { 
     133        error 403 "Access Denied"; 
     134      } 
     135    } 
     136    if (req.url ~ "/server-status$") { 
     137      if (client.ip ~ local) { 
     138        return (pass); 
     139      } 
     140      else { 
     141        error 403 "Access Denied"; 
     142      } 
     143    } 
     144    if (req.url ~ "apc_info.php") { 
     145      if (client.ip ~ local) { 
     146        return (pass); 
     147      } 
     148      else { 
     149        error 403 "Access Denied"; 
     150      } 
    124151    } 
    125152 
     
    199226} 
    200227}}} 
     228 
     229The security hole that resulted in resources that apache only made available to localhost being available to all via varnish was closed on ticket:357#comment:11 
    201230 
    202231== Piwik ==