Now we want to control the access authentication by using the Require group option, that means we
want certain groups of people to have access to our website, certain groups not to have access.
So in our case, we are going to create one webgroup files and in Webgroup file what we are going to say
webadmin and in webadmin.
we will specify nanu and kanu Webadmins and then we will specify to operator: vipin anantika.
Then we will make changes in .htaccess file.
We are going to say AuthType Basic, here we are going to change the message "by invitation only".
You can write any message then AuthUserFile
/etc/httpd/.
/webpass and now we are going to add AuthGroupFile.
Also, /etc/httpd/webgroup.
That means now it is going to read this file also.
Then here we are going to specify Require webadmin that mean only the people which are in Web
admin group, they will be able to access the page.
Then we will test the syntax and we will see.
So what we are doing here, we are creating two groups, webadmin having the users, Nanu and kanu
and Operator Group, having the user Vipin and Anantika.
And we will make the changes in this file and we will add this Require group
webadmin.
then we will test it with so Nanu and Kanu will be able to access the webpage, but when we
will try to access as anantika user
It will not be able to access even vipin user will not be able to access.
So that is the purpose of this, instead of writing name of individual users, what you can do,
you can use this Require group option also.