• Solution. Support. Expertise
  • +43 664 635 1238
  • +1 647-947-4502
  • info@tdwebservices.com
WordPress Acceleration using NginX Reverse Proxy & CachingWordPress Acceleration using NginX Reverse Proxy & CachingWordPress Acceleration using NginX Reverse Proxy & CachingWordPress Acceleration using NginX Reverse Proxy & Caching
  • Hosting
    • Hosting
      • Business Hosting
      • Enterprise Hosting
      • TDWS VPS
      • Managed WordPress Hosting
      • Highly Optimized WordPress Hosting
      • Laravel Hosting
      • Odoo Hosting
      • Moodle Hosting
      • TDWS Reseller Plans
    • E-Commerce Solutions
      • Managed WooCommerce Hosting
      • Highly Optimized WooCommerce Hosting
      • Magento Hosting
      • PrestaShop Hosting
      • OpenCart Hosting
    • Dedicated Servers
      • Gaming Servers
    • TDWS Global Monitoring System
      • Server Monitoring
      • Network Monitoring
      • Application Monitoring
      • Database Monitoring
      • Cloud Monitoring
      • Container Monitoring
      • Storage Monitoring
  • Cloud
    • TDWS Cloud
      • TDWS Cloud Servers
      • TDWS CloudSites
      • TDWS Box Cloud
      • TDWS Virtual Private Cloud
      • TDWS Cloud Drive
    • TDWS Private Cloud
      • KVM Hypervisor Private Cloud
      • Xen Hypervisor Private Cloud
      • Microsoft Hyper-V Private Cloud
      • VMware ESXi Private Cloud
      • VMware Public Cloud Servers
    • Services
      • DB as a Service
      • Disaster Recovery as a Service
    • Other
      • TDWS Cloud Infrastructure
      • TDWS Hybrid Cloud
  • Insights
    • Small Business
    • Knowledge Base
    • Cloud Computing
    • Expert Opinion
    • Industry debates
    • Thought Leadership
  • About Us
    • Why Us
    • Data Centers
    • Affiliate
    • TDWS Channel Partners
    • Contact Us
    • TDWS Customer Reviews
    • TDWS Video
    • Legal
      • TD Web Services Acceptable Use Policy (“AUP”)
      • TDAG DMCA Notice Policy
      • TDAG Privacy Policy
      • Master Service Agreement
      • Service Level Agreement
Login
✕
Optimize With Managed Private Cloud
23 May 2019
Memcached to Reduces Database Load on WordPress Website
28 May 2019

WordPress Acceleration using NginX Reverse Proxy & Caching

Published by TDWS Technical Support on 27 May 2019
Categories
  • Knowledge Base
Tags
  • NginX
  • WordPress
  • WordPress Hosting
  • WordPress Optimization

A typical WordPress public website hosted on Apache Server is usually configured in such a way that a page is generated in realtime from the Database. This is because all of WordPress Pages, Post and other taxonomy are saved in MySQL Databases.

In simple words, when there is a request for the same page or post twice there will be two connections that will be opened with database and two pages will be generated. Which will increase the load on database query etc. If there is caching in place the page will be generated once and then the second request will be serve via cache. Which will improve the performance of your WordPress site. No website can call itself optimized without a caching system in place.

Here’s a quick list of the different types of caching we can identify:

  • Page cache: it happens on the server and stores the entire HTML of a page (as WP Rocket does);
  • Browser cache: it keeps storing the HTML but occurs on the browser;
  • Object cache: it stores database queries;
  • Bytecode cache: it’s a PHP extension and stores precompiled script bytecode in the memory;
  • CDN cache: it occurs on the CDN-side and stores the HTML and all other static files (images, CSS and JS);
  • Reverse proxy cache: it happens on the server’s side and stores all its responses to the client’s server.

In this article, we’re going to focus on this last type of caching and, in particular, to one of the most popular HTTP reverse proxies: NginX Reverse Proxy Server. TDWS Products like Managed WordPress Hosting and TDWS CloudSites have NginX Reverse Proxy as an option, giving your website an ability to scale faster.

What is HTTP Reverse Proxies?

A proxy server is a go‑between or intermediary server that forwards requests for content from multiple clients to different servers across the Internet. A reverse proxy server is a type of proxy server that typically sits behind the firewall in a private network and directs client requests to the appropriate backend server. A reverse proxy provides an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.

A reverse proxy is a server placed between the Internet and a company’s web server.

One reason to proxy to other servers from Nginx is the ability to scale out your infrastructure. Nginx is built to handle many concurrent connections at the same time. This makes it ideal for being the point-of-contact for clients. The server can pass requests to any number of backend servers to handle the bulk of the work, which spreads the load across your infrastructure. This design also provides you with flexibility in easily adding backend servers or taking them down as needed for maintenance.

Another instance where an HTTP proxy might be useful is when using application servers that might not be built to handle requests directly from clients in production environments. Many frameworks include web servers, but most of them are not as robust as servers designed for high performance like Nginx. Putting Nginx in front of these servers can lead to a better experience for users and increased security.

Proxying in Nginx is accomplished by manipulating a request aimed at the Nginx server and passing it to other servers for the actual processing. The result of the request is passed back to Nginx, which then relays the information to the client. The other servers in this instance can be remote machines, local servers, or even other virtual servers defined within Nginx. The servers that Nginx proxies requests to are known as upstream servers.

What are the advantages of using a reverse proxy

SSL Termination

Here the reverse proxy handles incoming HTTPS connections, decrypting the requests and passing unencrypted requests on to the web servers. This has several benefits:

  • Removes the need to install certificates on many back end web servers.
  • Provides a single point of configuration and management for SSL/TLS
  • Takes the processing load of encrypting/decrypting HTTPS traffic away from web servers.
  • Makes testing and intercepting HTTP requests to individual web servers easier.

Serving Static Content

Not strictly speaking ‘reverse proxying’ as such. Some reverse proxy servers can also act as web servers serving static content. The average web page can often consist of megabytes of static content such as images, CSS files and JavaScript files. By serving these separately you can take considerable load from back end web servers, leaving them free to render dynamic content.

Caching

The reverse proxy can also act as a cache. You can either have a dumb cache that simply expires after a set period, or better still a cache that respects Cache-Control and Expires headers. This can considerably reduce the load on the back-end servers.

Load balancing

A reverse proxy server can act as a “traffic cop,” sitting in front of your backend servers and distributing client requests across a group of servers in a manner that maximizes speed and capacity utilization while ensuring no one server is overloaded, which can degrade performance. If a server goes down, the load balancer redirects traffic to the remaining online servers.

Web acceleration

Reverse proxies can compress inbound and outbound data, as well as cache commonly requested content, both of which speed up the flow of traffic between clients and servers. They can also perform additional tasks such as SSL encryption to take load off of your web servers, thereby boosting their performance.

Improved Security

By intercepting requests headed for your backend servers, a reverse proxy server protects their identities and acts as an additional defense against security attacks. It also ensures that multiple servers can be accessed from a single record locator or URL regardless of the structure of your local area network.

Compression

In order to reduce the bandwidth needed for individual requests, the reverse proxy can decompress incoming requests and compress outgoing ones. This reduces the load on the back-end servers that would otherwise have to do the compression, and makes debugging requests to, and responses from, the back-end servers easier.

Centralised Logging and Auditing

Because all HTTP requests are routed through the reverse proxy, it makes an excellent point for logging and auditing.

How to Use NginX Reverse proxy on Your WordPress Site?

While hosting with TDWS Managed WordPress or TDWS CloudSites, we make it extremly simple for our clients to manage and configure NginX Caching and Reverse Proxy.

Activate NginX Caching in Managed WordPress

The whole activation will take just a single click. Login to your WordPress Management panel and just enable the button for NginX Cache (images attached)

Activate NginX Caching for other applications

Step 1: Login to your TDWS CloudSites Control Panel

Once you login click on Apache & NginX setting

Step 2: Select NginX Setting

That’s It! You are done!

Conclusion

TD Web Services makes it extremely easy for anyone to use and accelerate their website using reverse proxy of NginX. If there is additional support that is required, we are always here to give you support or if you want our team to enable and setup NginX for you, just open a ticket and we will do it for you.

Share
1
TDWS Technical Support
TDWS Technical Support

Related posts

15 June 2021

Why Upgrade Your Site to PHP 7.x


Read more
27 May 2021

Common Causes Why is WordPress Slow


Read more
12 March 2019

How to Switch Your Domain Name Without Damaging Your Site’s SEO


Read more
10 March 2019

How to Use the cPanel/WHM Transfer Accounts Tool


Read more
6 June 2018

How to Change WordPress password using phpMyAdmin or MySQL


Read more
13 April 2018

How to Transfer WordPress Site to a New Domain


Read more
1 February 2017

The ABCD of Cloud Computing


Read more
21 September 2016

Cloud Computing and IP Challenges


Read more

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Our Services

  • Business Hosting
  • TDWS VPS
  • Dedicated Servers
  • E-Commerce Solutions
  • Enterprise Hosting
  • Managed WordPress Hosting
  • Highly Optimized WordPress Hosting
  • SSL Certificates

TDWS Cloud

  • TDWS Cloud Servers
  • TDWS CloudSites
  • VMware Public Cloud Servers
  • VMware ESXi Private Cloud
  • Microsoft Hyper-V Private Cloud
  • TDWS Virtual Private Cloud
  • Hybrid Cloud
  • Cloud Infrastructure

Recent Posts

  • The Power of Plus Addressing
  • Why an LMS is Essential for Selling Courses Online
  • CentOS Stream vs AlmaLinux: Which Distribution is Right for You?
  • De-Risk Your IT Strategy with TDWS High-Performance Cloud
  • Speeding Up Success: How Power Day Sale Improved Website Performance and Increased Conversions

About Us

  • About Us
  • Why Us
  • Affiliate
  • Contact Us
  • Data Centers
© 2021 TD Web Services. All Rights Reserved.