Commit e20bde38 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Fine-tune the vhost example.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1792 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7eeede9c
...@@ -559,8 +559,9 @@ backend images { ...@@ -559,8 +559,9 @@ backend images {
sub vcl_recv { sub vcl_recv {
if (req.http.host ~ "^(www\.)?example\.com$") { if (req.http.host ~ "^(www\.)?example\.com$") {
set req.http.host = "www.example.com";
set req.backend = www; set req.backend = www;
} elsif (req.http.host ~ "^images\.example\.com") { } elsif (req.http.host ~ "^images\.example\.com$") {
set req.backend = images; set req.backend = images;
} else { } else {
error 404 "Unknown virtual host"; error 404 "Unknown virtual host";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment