Sentora Support Forums

Full Version: Setup Varnish Cache with VHosts (Ubuntu 14.04) 64bit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(01-03-2016, 09:38 PM)Sync Wrote: [ -> ]I tried it but after setting it up I can't access the websites using varnish. Hmm. But I can access on port 8080. So I reverted it all back to defaults. Hmm. I'm using 32bit os because their website said it should work.

guide clearly states for 64bit ubuntu, i will be backing up my server this weekend and give this ago... anything to give me speed would be a bonus as long as woocommerce and wordpress are not damaged. (linode out of the box are fast, but i want to be faster then normal...)
(02-12-2016, 05:08 AM)warmax356 Wrote: [ -> ]
(01-03-2016, 09:38 PM)Sync Wrote: [ -> ]I tried it but after setting it up I can't access the websites using varnish. Hmm. But I can access on port 8080. So I reverted it all back to defaults. Hmm. I'm using 32bit os because their website said it should work.

guide clearly states for 64bit ubuntu, i will be backing up my server this weekend and give this ago... anything to give me speed would be a bonus as long as woocommerce and wordpress are not damaged. (linode out of the box are fast, but i want to be faster then normal...)

Varnish is great, you will love it.

Keep in mind that WordPress and Woo-commerce need a specific Varnish configuration for it to be able to cache. If you do not setup it correctly it will work but will not be cached and will not improve speed like it should; however even using varnish without cache can speedup your web sites.

Refs:
- https://gist.github.com/nadirlc/46987b42447cf8e3be79
- http://info.varnish-software.com/blog/st...h-software
- http://www.psynapticmedia.com/varnish-4-...ocommerce/
- http://stackoverflow.com/questions/35081...fig-advise
(01-03-2016, 09:38 PM)Sync Wrote: [ -> ]I tried it but after setting it up I can't access the websites using varnish. Hmm. But I can access on port 8080. So I reverted it all back to defaults. Hmm. I'm using 32bit os because their website said it should work.

And it should work, however it is not supported.

Most likely you have a configuration issue (like port numbers), double check every step.
I would be interested to see a good default.vcl for a server who run Joomla and Wordpress websites on Cloudflare. Smile
(04-12-2016, 02:37 AM)Bobses Wrote: [ -> ]I would be interested to see a good default.vcl for a server who run Joomla and Wordpress websites on Cloudflare. Smile

If you use cloudflare and wordpress that's non sense. It's better you add supercache in your WP and let cloudflare play the reverse proxy/cdn instead of adding another layer here.

M B
(04-12-2016, 02:47 AM)Me.B Wrote: [ -> ]If you use cloudflare and wordpress that's non sense.

OK, it'a a good ideea. I use Cloudflare only with one domain.
But I need a good default.vcl configuration for real IP comments without Cloudflare - not 127.0.0.1
If you want real IP then you need to setup:

https://httpd.apache.org/docs/current/mo...oteip.html

Cloudflare too advice for such setup.

M B
I enabled mod_remoteip:
Code:
a2enmod remoteip
I create a file remoteip.conf in /etc/apache2/mods-available with the content:

Code:
RemoteIPHeader X-Forwarded-For

Then I restarted apache2 server and nothing changed: the same 127.0.0.1...
It's necessary a good how-to guide for sentora, apache2 and varnish4.
Pages: 1 2