Is it possible in an easy way to install Varnish on a CPanel server?
http://varnish.projects.linpro.no/
http://varnish.projects.linpro.no/
Does this change the port settings on VirtualHost as well?You can change the apache port for a test by editing this file:
/usr/local/apache/conf/httpd.conf
and finding:
Listen 0.0.0.0:80
Now, there is a comment above that:
"/var/cpanel/cpanel.config"
There is a line there like so:
apache_port=0.0.0.0:80
Now, I dont' know the inheritance involved with the config files, but I would assume the apache_port in cpanel.config would be of the highest level, and I assume when you make changes to the apache config (in whm) and save, it would pull the values of this file and set them permanently.
There is a note in the cpanel.config that you need to run this script after making changes to save them:
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
I'll follow this thread, if you have any luck let me know how it goes.
The port on which Apache listens for HTTP connections.
Specifying a specific IP will prevent Apache from listening on all other IPs.
(default: 0.0.0.0:80)
Many thanks EmptyMind for confirming this for me.There is no way for you to tell cpanel to have apache listen on port 8888 for SiteA, But still listen on port 80 for SiteB.
I will definitely pursue this route for my larger sites.Your best option would probably be to split your sites across 2 servers/vps's, one with varnish installed, and one without.
It should be something like this.sub vcl_recv {
if (server.ip ~ a192_168_100_10) {
set req.backend = b192.168.100.10;
}
if (server.ip ~ a192_168_100_11) {
set req.backend = b192_168_100_11;
}
}
sub vcl_recv {
if (server.ip ~ a192_168_100_10) {
set req.backend = b192_168_100_10;
}
if (server.ip ~ a192_168_100_11) {
set req.backend = b192_168_100_11;
}
}
Hi Texo,That sounds interesting, Joe, and I can't wait to try it out. Been waiting quite a few hours for my order to be processed...