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 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.
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:
Make sure the status is Running and Configuration: valid
After restarting the NGINX server:
If everything loads properly, you’ve completed the setup correctly!
You can now turn off the Prevent Broken Layout option for better performance.
/var/www/wordpress/hidemywp.conf exists.We recommend checking the Nginx Setup on Virtual Private Server
Because hackers often use bots to search for security flaws in your website, it is…
The easiest way to change the default media uploads path is to use the WP…
To hide all CSS and JS you need to follow the steps to Combine the…
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…
When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…