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