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
    /home/s150
    s150@default:~$ cd nginx
    s150@default:~ngingx$ ls
    user.conf.sample
    s150@default:~/nginx$
  3. Next, create a file ending in .conf:
    s150@default:~/nginx$ touch redirects.conf
    s150@default:~ngingx$ ls
    redirects.conf user.conf.sample
    s150@default:~/nginx$

    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;
    }
    s150@default:~/nginx$
  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.

Addressing WordPress 4.9.4 Update and Vulnerabilities

If you run WordPress sites you likely know it is critical to make sure that your software is up to date. In fact, you may have automatic updates enabled, so your site updates as soon as WordPress updates are available.  If you are running WordPress sites on a Liquid Web product such as our Storm VPS or Dedicated servers, please read on. This article contains critical information for you regarding WordPress 4.9.4 updates and action is required.

Note:

For customers on our Managed WordPress or Managed WooCommerce Hosting platforms, we’ll make sure your WordPress install is automatically updated; you do not need to take any action.

WordPress 4.9.4 is now available and addresses a bug in 4.9.3, which will cause automatic updates from WordPress 4.9.3 to fail. This means your site needs to be manually updated to 4.9.4.

Fortunately, updating your WordPress install is pretty simple (We do suggest that you take a site backup before updating, as with any software update.)

  1. Log into your WordPress admin page (www.yourdomain.com/wp-admin). Once logged in you should see a prompt in the WordPress dashboard, as shown below:wordpress admin dashboard update section
  2. Click on the Please update now text, which will take you to the WordPress Updates page. You can also click on DashboardUpdates, where you will be taken to the same WordPress Updates Page.wordpress update home page, click update now
  3. Click the Update Now button. The WordPress update will run, and after it completes, you’ll see the page below:wordpress 4.9.4 updated successfully

As always, our Helpful Human Support team is standing by to assist you with any questions or concerns, just open a chat, ticket, or call us and we’ll be ready. You can also find more information about this maintenance release on the WordPress.org site.

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”