• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » W3 Total Cache With SSL for Nginx Server

By Abhishek Ghosh September 1, 2014 8:09 am Updated on September 1, 2014

W3 Total Cache With SSL for Nginx Server

Advertisement

W3 Total Cache With SSL for Nginx Server, thats on Rackspace Cloud with PHP5-FPM – here are some tips to work with this complex setup keeping everything fine. It is not that easy unlike Apache2, it is not that difficult too. After SSL Grade Optimization, this part possibly is the last work for your WordPress setup. Google unlikely to penalize a good graded website with HTTPS (HTTP is fully different matter, the protocol is different), yet we must make our websites faster enough allow smooth crawling.

 

W3 Total Cache With SSL for Nginx Server : Work Manually Via SSH

 

If you have followed this kind of guide to Install WordPress with Nginx on Rackspace Cloud Server or something closer you read somewhere, that is kept everything including the file permission, ownership to fully default values, W3 Total Cache’s grandfather can not write on the files needed some changes. You should manually add via nano or vi text editor over ssh. Two files you will require to change on latest Debian and Ubuntu 14.04 are :

Vim
1
2
/usr/share/nginx/html
/etc/nginx/sites-available/default

But you need to change the path from Performance > General Settings page :

Advertisement

---

W3 Total Cache With SSL for Nginx Server

W3 Total Cache will deliver you the needed changes via kind of Ajax based messages like we get the errors. All are related to this file :

Vim
1
/etc/nginx/sites-available/default

Your Nginx main config file. So every time during initial setup, not only you’ll need to add and save but also need to do config test :

Vim
1
nginx -t

and reload :

Vim
1
service nginx reload

 

W3 Total Cache With SSL for Nginx Server : Whats to Keep ON and Off for Debugging

 

W3 Total Cache can make the setup slowest possible with SSL. Mild caching should be done. The reason to use is to use the CDN, get a better First Byte Time etc. So, initially only keep these on :

Page cache (Disk Enhanced)
Database Cache (Disk) [[ Only if a separate server is not used. There is almost no need with Innodb… ]]
Object Cache (Disk)
Browser Cache

First test with these. Settings should go under main server { block or location block (does not matter for one domain setup). Test with both Webpagetest and Tools.Pingdom. Browser cache might require debugging. We are using PHP in a different way versus Apache2, we need some manual work like :

Vim
1
2
3
4
5
6
set $cache_uri $request_uri;
 
# POST requests directly delivers PHP pages
if ($request_method = POST) {
set $cache_uri 'null cache';
}  

Save time by making the server to check if really cache exists :

Vim
1
2
3
4
5
6
7
8
9
location / {
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args ;
}
<pre>
 
Set expires to max (25 years) :
 
<pre>
               expires max; log_not_found off; access_log off;

Matching with this, CDN should have a TTL of 50 years ( Rackspace Cloud Files or Akamai ) and DNS have a TTL of 50 years ( Rackspace Cloud DNS )

As we are using Nginx with PHP5-FPM on Rackspace’s high end server, serving as Page cache or without has only impact on TTFB. As there is enough chance to get 500 error pages, clear browser cache and manually test for SSL https logo on address bar.

You will configure Minify and CDN later. Both are quite painful as some files usually need to be excluded.

Tagged With w3 total cache nginx optimal settings , W3 Total Cache Ssl CDN
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to W3 Total Cache With SSL for Nginx Server

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • PowerAmp Settings for Higher Sound QualityOctober 4, 2023
  • Affordable Earphone/IEM for Audiophiles: HiFiMan RE-400 WaterlineOctober 2, 2023
  • What is Hardware Security Module (HSM)September 30, 2023
  • Transducer Technologies of HeadphonesSeptember 28, 2023
  • What is Analog-to-Digital Converter (ADC)September 27, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy