Changes between Version 95 and Version 96 of NewLiveServer
- Timestamp:
- 03/15/12 13:40:56 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewLiveServer
v95 v96 186 186 The memory was set to 256M and was increased after more RAM was added to the server, see ticket:397. 187 187 188 And in /etc/varnish/default.vcl :188 And in /etc/varnish/default.vcl the following: 189 189 190 190 {{{ … … 200 200 "127.0.0.1"; 201 201 } 202 acl local { 203 "localhost"; // myself 204 "127.0.0.1"; // myself 205 "81.95.52.88"; // this machines main ip address 206 } 207 202 208 203 209 # chris … … 209 215 ## Pass cron jobs and server-status 210 216 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 } 212 223 } 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 } 215 239 } 216 240 … … 298 322 See http://www.agentbob.info/agentbob/g3/83-AB.html 299 323 324 The security hole for things that apache only made available to local host was fixed on ticket:357#comment:11 325 300 326 == apc == 301 327