~ubuntu-branches/debian/sid/varnish/sid

« back to all changes in this revision

Viewing changes to doc/sphinx/=build/html/_sources/tutorial/putting_varnish_on_port_80.txt

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-29 15:23:24 UTC
  • mfrom: (0.1.15)
  • Revision ID: package-import@ubuntu.com-20111029152324-tdtlsurrv22ysknj
Tags: 3.0.2-1
* New upstream release
* Build from upstream tarball instead of git tag
* debian/watch: more specific regular expression

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
Put Varnish on port 80
 
3
----------------------
 
4
 
 
5
Until now we've been running with Varnish on a high port, for testing
 
6
purposes. You should test your application and if it works OK we can
 
7
switch, so Varnish will be running on port 80 and your web server on a
 
8
high port.
 
9
 
 
10
First we kill off varnishd::
 
11
 
 
12
     # pkill varnishd
 
13
 
 
14
and stop your web server. Edit the configuration for your web server
 
15
and make it bind to port 8080 instead of 80. Now open the Varnish
 
16
default.vcl and change the port of the *default* backend to 8080.
 
17
 
 
18
Start up your web server and then start varnish::
 
19
 
 
20
      # varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000
 
21
 
 
22
Note that we've removed the -a option. Now Varnish, as its default
 
23
setting dictates, will bind to the http port (80). Now everyone
 
24
accessing your site will be accessing through Varnish.
 
25