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.
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.