Lets say for simplicity, as i'm a startup on Varnish, i have a single Server having Varnish
and Apache
together inside. There are multiple Sub-Domains in Apache as Virtual Hosts.
Lets say i have:
- sub1.example.com
- sub2.example.com
- sub3.example.com
Then i ONLY changed Apache's httpd.conf
port to:
Listen 8080
Again then now my backend setting in VCL so far is:
backend default{
.host = "127.0.0.1";
.port = "8080";
}
Now my question here is:
- Is it just enough for this kind of setup? Seriously what am i missing here?
- What i'm still need to be cleard is, first, at the Apache
httpd.conf
end, is it only need to change theListen
value?
How about this:
NameVirtualHost *:80
and also V.Host settings for each sub-domains:
<VirtualHost *:80>
..
..
</VirtualHost>
- Do i also need to change those Ports to
8080
please, for Apache side?
Finally in the VCL Configuration, i am seeing such kinda following:
if (req.http.host == ".........com") {
..
}
.. in other forums.
- I DO NOT have this kind of setting inside my VCL
- So do i need such thing and/or seriously what do i missing for my schema please?
Thanks all!