This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Setup Varnish Cache with VHosts (Ubuntu 14.04) 64bit
#11
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
(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...)
Reply
Thanks given by:
#12
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
(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
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#13
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
(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.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#14
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
I would be interested to see a good default.vcl for a server who run Joomla and Wordpress websites on Cloudflare. Smile
Reply
Thanks given by:
#15
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
(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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#16
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
(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
Reply
Thanks given by:
#17
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#18
RE: Setup Varnish Cache with VHosts (Ubuntu 14.04)
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.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Upgrade to Ubuntu 16.04 from 14.04 HogensHero 8 30 ,312 07-18-2020, 03:13 AM
Last Post: dycott78
Ubuntu: How to Enable tls/ssl in proftpd Diablo925 2 12 ,831 04-21-2020, 03:35 AM
Last Post: iraqiboy90
Ubuntu 18.04 or 20.04 Kangarooo 1 6 ,943 03-20-2020, 11:39 AM
Last Post: Jettaman

Forum Jump:


Users browsing this thread: 1 Guest(s)