WP Ghost works on RunCloud with both web application stacks: NGINX + Apache2 Hybrid (recommended) and Native NGINX. The Hybrid stack is the easiest setup because it uses .htaccess the same way standard Apache does, so WP Ghost works out of the box with no extra configuration. Native NGINX requires one additional step: creating a hidemywp.conf file and adding an include directive to the RunCloud Nginx config. This guide covers both options and explains when to choose each.
RunCloud offers two stack options when creating a WordPress application: NGINX + Apache2 Hybrid uses Nginx as a reverse proxy in front of Apache, with Apache handling .htaccess processing. This is the most compatible option and recommended for WP Ghost. Native NGINX uses Nginx alone with no Apache layer – it’s faster but doesn’t process .htaccess, so WP Ghost requires manual Nginx config additions. Choose Hybrid if you want the easiest setup. Choose Native NGINX if you need maximum performance and don’t mind one extra configuration step.
This is the simplest setup. With Hybrid mode, WP Ghost writes rewrite rules to .htaccess just like on a standard Apache server, and Apache processes them automatically.
.htaccess automatically and applied without any additional server configuration.That’s it. With Hybrid mode, you don’t need to edit any Nginx configuration. WP Ghost works the same way it does on any Apache server. Skip to the Verify the Setup section.
Native NGINX is faster but requires manual configuration because Nginx doesn’t process .htaccess. WP Ghost generates a hidemywp.conf file with the rewrite rules, and you need to add an include directive to RunCloud’s Nginx config so the rules are loaded.
hidemywp.conf in the root directory.include directive you need to add to your Nginx config:include /home/runcloud/webapps/yoursite/hidemywp.conf;) to the configuration.Important: On Native NGINX, you must rebuild the web application config in RunCloud every time you save WP Ghost path changes. Nginx loads its configuration at startup and keeps it in memory – changes to hidemywp.conf won’t take effect until Nginx reloads.
This step is only required for Native NGINX setups. Hybrid mode applies .htaccess changes immediately without any reload.
/wp-login.php – it should return 404.You probably forgot to rebuild the web app config after saving WP Ghost. Go to your RunCloud application and click Rebuild Web Application Config. If that doesn’t fix it, verify the include directive is present in the NGINX Config tab and that the path matches the actual hidemywp.conf file location.
The file path in your include directive doesn’t match the actual file location. RunCloud paths typically follow /home/runcloud/webapps/your-app-name/. SSH into your server and verify with ls -la /home/runcloud/webapps/your-app-name/hidemywp.conf – if the file isn’t there, create it through the RunCloud File Manager and re-save WP Ghost settings.
Most common cause: missing semicolon at the end of the include line, or wrong file path. Check that your include line ends with a semicolon: include /home/runcloud/webapps/yoursite/hidemywp.conf;. RunCloud validates the config before applying it, so an error in this dialog means Nginx would fail to start.
You can change the web application stack in RunCloud after creation, but it requires recreating the application. Back up your site first. After switching to Hybrid, remove the include directive from your old Nginx config (no longer needed) and let WP Ghost write rules to .htaccess automatically.
Use the Safe URL parameter to bypass WP Ghost temporarily. If that doesn’t work, see the Emergency Disable guide to recover access via FTP or RunCloud File Manager.
For most users, NGINX + Apache2 Hybrid is the better choice. It works out of the box with WP Ghost and any other plugin that uses .htaccess (cache plugins, security plugins, redirect plugins). Native NGINX is faster for high-traffic sites but requires manual Nginx config for every plugin that writes rewrite rules.
Only on Native NGINX. The Nginx server keeps its configuration in memory, so any change to hidemywp.conf requires a rebuild for the new rules to take effect. On Hybrid mode, .htaccess changes are read on every request and apply immediately.
Yes, on Native NGINX. Cache plugins, security plugins, and any plugin that writes rewrite rules will need their rules added to the RunCloud Nginx config. This is one of the main reasons to choose Hybrid mode unless you specifically need Native NGINX performance.
Yes. WP Ghost is fully compatible with WooCommerce on RunCloud with both stack options. Cart, checkout, product pages, and customer accounts work normally.
No. WP Ghost writes rewrite rules to .htaccess (Hybrid) or hidemywp.conf (Native NGINX), and uses WordPress hooks for application-level changes. No core files are modified. Deactivating WP Ghost restores all defaults instantly.
Server configuration for WP Ghost:
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.…