Difference between pages "Package:Varnish" and "MediaWiki:Common.css"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
@font-face {
|Summary=Varnish is a state-of-the-art, high-performance HTTP accelerator
  font-family: 'Linux Libertine';
|CatPkg=www-servers/varnish
  src: url('/fonts/LinLibertine_R.woff');
|Maintainer=
}
}}
__TOC__
'''Varnish''' is a webcache & http accelerator.  Varnish will either serve cached content, or retireve content from the server, and cache it.  Varnish will reduce I/O pressure from webservers.


==Install==
@font-face {
===Emerge===
  font-family: 'Linux Libertine';
  font-weight: bold;
  src: url('/fonts/LinLibertine_RB.woff');
}


Install {{Package|www-servers/varnish}}
.shell,pre,.mw-code,code,tt,div.mw-geshi {
<console>###i## www-servers/varnish</console>
font-size:12px;
font-family:'andale mono','lucida console', monospace;
}


==Configuration==
.shell,pre,.mw-code,div.mw-geshi {
overflow-x:auto;
overflow-y:hidden;
border:1.5px solid #ccc;
border-radius:5px;
line-height:1.2em;
margin:0;
margin-bottom: 0.5em;
padding:10px;
}


Configuration is controlled by /etc/varnish/default.vcl
.code {
font-family:'andale mono', 'lucida console', monospace;
font-size:12px;
border:none;
border-radius:10px;
background-color:#073642;
color:#aaa;
overflow-x:auto;
overflow-y:hidden;
line-height:1.5em;
}


{{file|name=/etc/varnish/default.vcl|desc=varnish configuration file|body=
.code b {
# backend default {
color:#fff;
#     .host = "127.0.0.1";
font-weight:700;
#    .port = "8080";
}
# }
}}


Any traffic pointed at port 8080 will be through varnish.
.code_input {
color:#ff8040;
font-weight:700;
}


== BootService ==
.code_red {
color:red;
}


To start varnish immediately:
.code_blue {
<console>###i## rc-service varnishd start</console>
color:#88f;
}


To start varnish at boot:
.code_green {
<console>###i## rc-update add varnishd default</console>
color:#0f0;
}


== Verification ==
.code_yellow {
To verify that your traffic is going through varnish.
color:#ff0;
<console>$##i## curl -I https://www.varnish-cache.org/</console>
}


[[Category:Server]]
/* Ebuild/Package CSS */
[[Category:Daemons]]


{{EbuildFooter}}
.ns-502 #firstHeading {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  margin-bottom: 0.25em;
  font-size: 1.6em;
}
 
ns-502 #content-spacer {
  display: block;
  line-height: 1em;
}

Revision as of 06:57, June 27, 2014

@font-face {
  font-family: 'Linux Libertine';
  src: url('/fonts/LinLibertine_R.woff');
}

@font-face {
  font-family: 'Linux Libertine';
  font-weight: bold;
  src: url('/fonts/LinLibertine_RB.woff');
}

.shell,pre,.mw-code,code,tt,div.mw-geshi {
font-size:12px;
font-family:'andale mono','lucida console', monospace;
}

.shell,pre,.mw-code,div.mw-geshi {
overflow-x:auto;
overflow-y:hidden;
border:1.5px solid #ccc;
border-radius:5px;
line-height:1.2em;
margin:0;
margin-bottom: 0.5em;
padding:10px;
}

.code {
font-family:'andale mono', 'lucida console', monospace;
font-size:12px;
border:none;
border-radius:10px;
background-color:#073642;
color:#aaa;
overflow-x:auto;
overflow-y:hidden;
line-height:1.5em;
}

.code b {
color:#fff;
font-weight:700;
}

.code_input {
color:#ff8040;
font-weight:700;
}

.code_red {
color:red;
}

.code_blue {
color:#88f;
}

.code_green {
color:#0f0;
}

.code_yellow {
color:#ff0;
}

/* Ebuild/Package CSS */

.ns-502 #firstHeading {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  margin-bottom: 0.25em;
  font-size: 1.6em;
}

ns-502 #content-spacer {
  display: block;
  line-height: 1em;
}