LSWS + Varnish on cpanel

#1
Hi,

We have LSWS + Varnish on cpanel. LSWS is listen on port 8080 and Varnish is listen on port 80. A lot of websites have problem with adding port 8080 to url when reload website oraz click dynamic generated links like in phpBB or something like this. I think that good idea is listening LSWS only on localhost on port 80, but how we can do it?

Best regards.
 

webizen

Well-Known Member
#2
Basically, LSWS reads httpd.conf generated by cPanel. So you can NOT dictate LSWS only listens on localhost unless you have all the vhosts bound to localhost. For shared hosting (multiple vhosts), it is impossible.

If you are looking for website speedup, keep in mind that LSWS Enterprise (2CPU & above) comes with cache function which covers dynamic page (like php) caching. Static page caching is available for all LSWS versions.

You can also try opcode cache (APC, xCache, etc) with LSWS suEXEC daemon mode to enable opcode cache in the shared hosting environment. See more details below:

http://blog.litespeedtech.com/2012/09/11/lsws-4-2-introduces-php-suexec-daemon-mode/
 
#3
Thx for reply. Hmm so is not possible to use LSWS with VARNISH? Varnish can use RAM MEM for caching - this is very important to save disk i/o. What about LSWS caching?
 
Top