Configuring NGINX for Managed WordPress

Running a WordPress site can be incredibly simple and used right out of the box, but you may need to customize or add specific files in order to get the most out of your site. Our Managed WordPress customers can include custom NGINX configurations for individual sites, because we know that adding simple redirects or adjusting browser cache settings are actions that many of our Managed WordPress users do on a regular basis. Read on to learn how you can use this functionality for your own site.

On the Managed WordPress platform, custom configuration files are read from the NGINX folder within the site’s home directory. Any file ending with .conf will be read into NGINX on reload or restart, so a file called ~/nginx/user.conf.sample is provided as a placeholder.

While you can create and edit these files, it is necessary that you reach out to our Managed WordPress Support team to reload the NGINX configuration. This will allow us to test the file configuration and confirm that there are no errors or warnings. Because your site performance and uptime is important, the Managed WordPress support team will manually review files to check for potentially irregular and harmful configurations.

Although the primary use of this feature is for configuring redirects at the NGINX level. you may also set custom browser cache expiration times for static files. Any configurations beyond those described below are considered best effort for support.

An example of simple redirects:

# Simple redirect to an individual page
location /example-redirect-123 {
add_header X-Redirect-By "Yoast SEO Premium";
return 301 /example-redirect;

# Rewrite all urls under an old path to a new path
location /category/old-category {
rewrite ^/category/old-category/(.*)$ /category/new-category/$1 permanent;

An example of adjust browser cache settings:

# Reduces js and css cache times to a single day instead of the MWP default of 1 year.
location ~* \.(?:css|js)$ {
expires 24h;
access_log off;
add_header Cache-Control "public";

If you are looking to block access to a specific directory, you can complete this request by using the following command:

rewrite ^/wp-content/private_directory/(.*) /last;

Where “private_directory” is the directory you wish to block access to.

Configuring NGINX

  1. Log into the site via SSH.:ssh/sftp credential section in Managed WordPress portal highlighted
  2. Navigate to the NGINX directory located in the home directory.
    s150@default:~$ pwd
    s150@default:~$ cd nginx
    s150@default:~ngingx$ ls
  3. Next, create a file ending in .conf:
    s150@default:~/nginx$ touch redirects.conf
    s150@default:~ngingx$ ls
    redirects.conf user.conf.sample

    In this example, we are using redirects.conf, but you can name it anything you’d like, just make sure you remember the file name.
  4. Then modify the file with the configuration changes:
    s150@default:~/nginx$ vi redirects.conf
    s150@default:~ngingx$ cat redirects.conf
    # Limited to directives valid in the server block context
    # All files ending in '.conf' in this directory will be loaded
    # Please contact support to have them reload the nginx config files
    # for changes to go into effect.# Configure redirects
    loacation /example-redirect-123 {
    add_header X-Redirect-By "Yoast SEO Premium";
    return 301 /example-redirect;
  5. Lastly, contact support to request review and reload of the config. You can easily reach our Managed WordPress support team by opening a chat or ticket through your Managed WordPress portal, or by calling our team at 1(833)845-4527 or 1(517)322-0434.

What is a LAMP stack?

The LAMP stack is the foundation for Linux hosted websites is the Linux, Apache, MySQL and PHP (LAMP) software stack.

The Four Layers of a LAMP Stack

Linux based web servers consist of four software components. These components, arranged in layers supporting one another, make up the software stack. Websites and Web Applications run on top of this underlying stack. The common software components that make up a traditional LAMP stack are:

  • Linux: The operating system (OS) makes up our first layer. Linux sets the foundation for the stack model. All other layers run on top of this layer.
  • Apache: The second layer consists of web server software, typically Apache Web Server. This layer resides on top of the Linux layer. Web servers are responsible for translating from web browsers to their correct website.
  • MySQL: Our third layer is where databases live. MySQL stores details that can be queried by scripting to construct a website. MySQL usually sits on top of the Linux layer alongside Apache/layer 2. In high end configurations, MySQL can be off loaded to a separate host server.
  • PHP: Sitting on top of them all is our fourth and final layer. The scripting layer consists of PHP and/or other similar web programming languages. Websites and Web Applications run within this layer.

We can visualize the LAMP stack like so:

Applying what you’ve learned

Understanding the four software layers of a LAMP stack aids the troubleshooting process. It allows us to see how each layer relies on one another. For instance; when a disk drive gets full, which is a Linux layer issue. This will also affect all other layers in the model. This is because those other layers rest on top of the affected layer. Likewise, when the MySQL database goes offline. We can expect to see PHP related problems due to their relationship. When we know which layer is exhibiting problems. We know which configuration files to examine for solutions.

Some Alternatives

The four traditional layers of a LAMP stack consist of free and open-source products. Linux, Apache, MySQL and PHP are the cornerstone of a free, non-proprietary LAMP stack. There are several variants of the four stack model as well. These variants use alternative software replacing one or more of the traditional components. Some examples of these alternatives are:

  • WAMP: Windows, Apache, MySQL & PHP
  • WISA: Windows, IIS, SQL &
  • MAMP: MacOS, Apache, MySQL & PHP

You can explore these alternative software stacks in greater depth using online resource. The LAMP stack Wiki is a great place to start:

How can we help?

The LAMP stack is an industry standard and is included in all of our Core-Managed and Fully Managed Linux based servers. Our support teams work hand in hand with the LAMP stack on a daily basis. You can rest assured we are at your disposal should you have questions or concerns. To learn more you can browse our latest product offerings.

What is the Liquid Web iThemes Bundle

In a recent press release from our Blog we announced that Liquid Web has acquired iThemes – a leader in WordPress plugin development. Needless to say, this is an exiting time. Another important step in our commitment to make WordPress hosting easier than ever.

Since 2016 we’ve actually had a partnership with iThemes to bundle Sync Pro into our WordPress platform. Moving forward we will expand this integration by adding BackupBuddy and iThemes Security. With this this awesome news we also have an awesome deal for our non-platform WordPress users.

The Liquid Web iThemes bundle

For our WordPress customers hosting on a traditional solutions we now offer an exclusive Liquid Web iThemes bundle. Through this bundle, for the first time ever, you can purchase the core iThemes plugins in a single package. With this offer you have access to iThemes Sync Pro, BackupBuddy and Security Pro for one low price. Check out our bundle product page to learn more about the exclusive offer.

Getting Support for iThemes Products

iThemes will remain an independent business unit of the Liquid Web family. This means that going forward we will continue providing support for these products under the iThemes brand. If you are seeking support for an iThemes plugin you can find documentation in their Help Center. And you can contact the iThemes Support team after logging into their Member Access Panel.

Official Plugin Documentation:

How To Install WordPress, Drupal, and Joomla On Cloud Sites with One-Click

Our Cloud Sites platform is a cut above the rest with its One-Click Installer we take the pain out of creating websites allowing you to focus on building out your website. Whether your CMS of choice is WordPress, Drupal, or Joomla – our Cloud Sites platform has streamlined the process of spinning up a new site. Setting up a new site is complicated – from adding administrators, uploading files and databases. We simplify all that complexity with our smooth-running installer. Our One-Click Installer quickly uploads & configures core files, getting your site up with speed and ease has never been easier.

Installing WordPress, Drupal or Joomla on Cloud Sites using our One-Click Installer

To begin the process you will need to be logged into your Cloud Sites control panel. Once you’ve logged in you will be able to begin the process. If you do not have a Cloud Sites account you can order one from our Cloud Sites product page.

  1. Create a Website: From your Cloud Sites Control Panel find and click the “Create Website” button.
  2. Choose Your CMS: Select the drop box next to application to install the latest version of your chosen CMS.
  3. Configurations: Fill in details of the site and click “Create New Application”. Three simple steps later, you have yourself a new site with time to spare.

And it’s just that simple – setting up a new website and CMS has never been so easy. No more having to build server infrastructure and no more installing the CMS software by hand. Our Cloud Sites platform will manage all of that for you, all you have to do is fill in a few blanks and hit “Create New Application” and you’ll be on your way. If you’re a current Cloud Sites customer give our rebuilt one-click CMS installer a try.

If you’re not a Cloud Sites customer yet, then never managing servers again is just $150/mo away. Our One-Click Installer is one of the many features offered within the Cloud Sites platform. Check out other ways to simplify your web hosting needs at our Cloud Sites product page. Once you sign up you’ll be ready to start immediately and getting your new site setup is just a few clicks away!

Resetting Passwords in Premium Business Email and Hosted Exchange

Resetting passwords in your Premium Business Email and Hosted Exchange is a painless experience with the tools available for either self-service password recovery or by having an administrator change your password for you. This tutorial will outline how to recover a lost or forgotten password in your email account. Continue reading “Resetting Passwords in Premium Business Email and Hosted Exchange”

Using the Email Help Tool for Premium Business Email and Hosted Exchange

Your Premium Business Email and Hosted Exchange comes with a support tool with everything you need to set up your email client on desktop and mobile devices. You also have access to troubleshooting and repair information in case you run into issues during and after the webmail client setup. If you have Premium Business Email Plus, the email help tool will allow you to set up your Cloud Drive for document storage and sharing as well as learn how to use Mobile Sync for your device setups.

Continue reading “Using the Email Help Tool for Premium Business Email and Hosted Exchange”

Adjusting Spam Filtering in Premium Business Email and Hosted Exchange

No one likes email spam, it’s a fact! There are ways to filter spam with your cPanel email, but what if you had automatic spam filtering that provided better protection and the ability to determine how it’s filtered? The answer is here with Liquid Web Premium Business Email and Hosted Exchange. Once you activate your Premium Business Email or Hosted Exchange account, you have access to and control over how your spam is filtered and delivered. Let’s take a look at how it works! Continue reading “Adjusting Spam Filtering in Premium Business Email and Hosted Exchange”

Adding a Mailbox in Premium Business Email and Hosted Exchange

Other than the platform you get your mail on, there’s really no difference between how you add a mailbox with your Premium Business Email or Hosted Exchange email. Adding an individual mailbox is an easy process that just takes a few moments, or you can add multiple mailboxes all at one time. Continue reading “Adding a Mailbox in Premium Business Email and Hosted Exchange”

Adding Multiple Mailboxes in Premium Business Email and Hosted Exchange

Just like adding a single mailbox, adding multiple mailboxes at once is nearly an identical process for both Premium Business Email and Hosted Exchange. Adding Multiple mailboxes comes in handy for migrating your email to Liquid Web Premium Business Email or Hosted Exchange. With just a simple spreadsheet, you can create all the mailboxes you need for your organization. Let’s take a look at how! Continue reading “Adding Multiple Mailboxes in Premium Business Email and Hosted Exchange”