From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Apache access control

Apache access control

- [Instructor] I mentioned in a previous video that Apache has some directives for restricting access based on user, group, network or host. Let's take a closer look. With require user, access is granted to specific user based on the user name or user ID. We can deny the same way with not require user. Let's see what this looks like. To allow user access by user we just specify their name. To deny by user, we change it to not require user and again specify their name. We can allow or deny by group as well by using require group and not require group. For both, we can just specify the group name. With require valid users, access is only granted to valid users. For a more broad control, we can allow or deny based on network addresses by using require ip and not require ip directives. To use this, we specify the network address without the host portion. If you want to allow or deny based on host name, use the require host or not require host directives. We can specify a host or even a…

Contents