Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
5ef82382
Commit
5ef82382
authored
Jan 21, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.varnish-cache.org/git/varnish-cache
parents
6ee9fa33
6350bfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
putting_varnish_on_port_80.rst
doc/sphinx/tutorial/putting_varnish_on_port_80.rst
+11
-6
No files found.
doc/sphinx/tutorial/putting_varnish_on_port_80.rst
View file @
5ef82382
...
@@ -2,19 +2,24 @@
...
@@ -2,19 +2,24 @@
Put Varnish on port 80
Put Varnish on port 80
----------------------
----------------------
If your application works OK we can now switch the ports so Varnish
Until now we've been running with Varnish on a high port, for testing
will listen to port 80. Kill varnish.::
purposes. You should test your application and if it works OK we can
switch, so Varnish will be running on port 80 and your web server on a
high port.
First we kill off varnishd.::
# pkill varnishd
# pkill varnishd
and stop your web server. Edit the configuration for your web server
and stop your web server. Edit the configuration for your web server
and make it bind to port 8080 instead of 80. Now open the Varnish
and make it bind to port 8080 instead of 80. Now open the Varnish
default.vcl and change the port of the
default
backend to 8080.
default.vcl and change the port of the
*default*
backend to 8080.
Start up your web server and then start varnish.::
Start up your web server and then start varnish.::
# varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000
# varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000
We're removed the -a option. Now Varnish will bind to the http port as
Note that we've removed the -a option. Now Varnish, as its default
it is its default. Now try your web application and see if it works
setting dictates, will bind to the http port (80). Now everyone thats
OK.
accessing your site will be accessing through Varnish.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment