Servers

Yunohost Server – WP Ghost Setup

Requirements

  • WordPress website installed and working
  • WP Ghost plugin installed and activated
  • NGINX web server (YunoHost uses NGINX by default)
  • Access to YunoHost admin panel or SSH terminal

Step-by-step Configuration

Locate the NGINX config file

YunoHost stores NGINX configs in:

/etc/nginx/conf.d/

Find the file that matches the domain where your WordPress site is installed.
For example:

/etc/nginx/conf.d/yourdomain.com.conf

Add WP Ghost configuration include

Open the file in a text editor:

sudo nano /etc/nginx/conf.d/yourdomain.com.conf

Scroll to the bottom and add the following line before:

include /etc/nginx/conf.d/domain.com.d/*.conf;

Add:

include /var/www/wordpress/hidemywp.conf;

Your config should now look like this:

include /var/www/wordpress/hidemywp.conf; include /etc/nginx/conf.d/domain.com.d/*.conf;

Save and close the file.

Restart NGINX from YunoHos

You must restart NGINX for the changes to take effect.

Run this command from terminal:

sudo service nginx restart

Or restart the NGINX service directly from your YunoHost admin panel:

  • Go to Tools > Services > NGINX
  • Click the Restart button

Make sure the status is Running and Configuration: valid

Test WP Ghost Configuration

After restarting the NGINX server:

  1. Go to WP Ghost > Change Paths section
  2. Click Frontend Test
  3. Click Login Test

If everything loads properly, you’ve completed the setup correctly!

You can now turn off the Prevent Broken Layout option for better performance.

Notes

  • Make sure the file /var/www/wordpress/hidemywp.conf exists.
  • If you change any path settings in WP Ghost later, repeat this process to update the NGINX config if needed.

We recommend checking the Nginx Setup on Virtual Private Server

John Darrel

Change Database Prefix in WordPress

Because hackers often use bots to search for security flaws in your website, it is…

1 year

Customize WordPress Uploads Directory

The easiest way to change the default media uploads path is to use the WP…

1 year

WP Ghost and WP Rocket Cache

To hide all CSS and JS you need to follow the steps to Combine the…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Setting up Two-Factor Authentication (2FA) for WordPress Using Mobile Apps

When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…

1 year