Often when you are doing development on a new site you want to protect the site from outside eyes and especially from bots prematurely crawling the site. A popular way to do this is to through basic access authentication. Or forcing user to enter username and password before being able to access the site.
With Kloxo-MR you can added and removed from the NGINX config through its control panel. Just follow the steps below to easily add restrictions to your site.
- Find Domain
- Find Button
- Choose Directory
- Create Credentials
Find Domain you want to add restriction to.
Find “Protected Directories” button
Add the restriction name and directory.
Add username and password
Find the permission within domain and delete
If for some reason either adding or deleting your basic access authentication doesn’t work. Then you will want to test NGINX config and then restart NGINX. You can do this as well through Kloxo-MR command center.
These are the commands to use.
/usr/sbin/nginx -t /etc/init.d/nginx restart
- Test NGINX Config
- Restart NGINX
Test NGINX configuration before restarting. Make sure there are no errors before proceeding further.