In this tutorial we will show how to set up the additional security configurations for your PHP application hosted with NGINX application server.
You can use the following types of security configurations:
To provide this, come through the next steps:
Generate hash from your password. For that you can use any htpasswd tool or online service (for example, http://www.htpasswdgenerator.net/).
Create simple text file with previously generated hash.
Click Config button for your server.
Upload the created file to the /var/www/webroot/ROOT directory.
In the /etc/nginx directory, open nginx.conf file and modify directory configurations:
You can provide security for your application through setting up different criteria, for example, allow or deny access by IP address.
As a result, a user with any IP except of the allowed ones will see the 403 error while trying to open your application.
Note:
Powered by BetterDocs
![]() | Thank you for Signing Up |