Changes between Version 95 and Version 96 of NewLiveServer


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

varnish documentation updated

Legend:

Unmodified
Added
Removed
Modified
  • NewLiveServer

    v95 v96  
    186186The memory was set to 256M and was increased after more RAM was added to the server, see ticket:397. 
    187187 
    188 And in /etc/varnish/default.vcl : 
     188And in /etc/varnish/default.vcl the following: 
    189189 
    190190{{{ 
     
    200200  "127.0.0.1"; 
    201201} 
     202acl local { 
     203  "localhost";         // myself 
     204  "127.0.0.1";         // myself 
     205  "81.95.52.88";       // this machines main ip address 
     206} 
     207 
    202208 
    203209# chris 
     
    209215    ## Pass cron jobs and server-status 
    210216    if (req.url ~ "cron.php") { 
    211       return (pass); 
     217      if (client.ip ~ local) { 
     218        return (pass); 
     219      } 
     220      else { 
     221        error 403 "Access Denied"; 
     222      } 
    212223    } 
    213     if (req.url ~ ".*/server-status$") { 
    214       return (pass); 
     224    if (req.url ~ "/server-status$") { 
     225      if (client.ip ~ local) { 
     226        return (pass); 
     227      } 
     228      else { 
     229        error 403 "Access Denied"; 
     230      } 
     231    } 
     232    if (req.url ~ "apc_info.php") { 
     233      if (client.ip ~ local) { 
     234        return (pass); 
     235      } 
     236      else { 
     237        error 403 "Access Denied"; 
     238      } 
    215239    } 
    216240 
     
    298322See http://www.agentbob.info/agentbob/g3/83-AB.html 
    299323 
     324The security hole for things that apache only made available to local host was fixed on ticket:357#comment:11 
     325 
    300326== apc == 
    301327