WP Ghost works with Local by Flywheel (now called Local) when using the Nginx server option. Local is a popular local WordPress development tool that runs WordPress sites on your computer for development and testing. When Local uses Nginx as its web server, you need to manually add WP Ghost’s config file include to the site’s Nginx configuration. If you use Local’s Apache option instead, WP Ghost works automatically via .htaccess with no extra setup needed.
Local by Flywheel lets you choose between Apache and Nginx as the web server for each site. When using Apache, WP Ghost writes rewrite rules to .htaccess and everything works automatically. When using Nginx, WP Ghost generates a config file (hidemywp.conf) containing the rewrite rules, but you need to manually include this file in Local’s Nginx configuration (conf/nginx/site.conf.hbs). You also need to tell WP Ghost that you’re running on Local by Flywheel so it generates the correct config file path.
This step is essential. Setting the server type tells WP Ghost to generate the config file at the correct path for Local’s directory structure. Without this, WP Ghost may generate config for a standard Nginx server which uses a different file path.
After saving, WP Ghost displays a notification with the include line you need to add to the Nginx config file.
include includes/hidemywp.conf;site.conf.hbs in a text editor.location / block).Placement matters. The include line must be placed before the WordPress rewrite rules in the config file. If placed after, the WordPress rules process first and WP Ghost’s path security won’t work. See the screenshot above for the correct position.
Check that the include line is placed before the WordPress rewrite rules in site.conf.hbs, not after. Also confirm the server was restarted after editing the file (stop and start the site in Local). Verify that the file path in the include line matches the location WP Ghost specified in its notification.
The include line may have a typo or be placed inside a block where it doesn’t belong. The line should be at the server block level, not inside a location block. Remove the line, restart the server to restore normal operation, then re-add it at the correct position.
Local may regenerate the site.conf.hbs file during updates or when changing site settings. If your custom paths stop working after a Local update, check that the include line is still present in site.conf.hbs and re-add it if needed.
No. If your Local site uses Apache as the web server, WP Ghost writes rewrite rules to .htaccess automatically. No extra setup is needed. This guide only applies to Local sites running on Nginx.
No. Local by Flywheel (now called Local) is a local development tool that runs WordPress on your computer. Flywheel hosting is a managed WordPress hosting service with its own server infrastructure. They have different setup requirements. For Flywheel hosting, see Flywheel Server Setup.
No. The include line references the hidemywp.conf file, which WP Ghost updates automatically when you save settings. You only need to add the include line once. However, you do need to restart the Local server after changing WP Ghost path settings so Nginx reloads the updated config.
No. WP Ghost generates a separate hidemywp.conf file and uses WordPress hooks for application-level changes. No core files are modified. Deactivating WP Ghost restores all defaults instantly.
WP Ghost on other server environments:
Replace the default wp_ database prefix with a random one to protect against SQL injection…
Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…
Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…
https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…
The security of your WordPress site depends on multiple factors, such as the strength of…
Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…