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,600 courses taught by industry experts or purchase this course individually.
Configure private access using Basic Auth - Red Hat Enterprise Linux Tutorial
From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
Configure private access using Basic Auth
- [Instructor] In this exercise, we will create a private site that requires logging in and entering a password. For more details on Apache Access Control, please refer to the previous chapter of this course. For this exercise, you should be logged in to rhhost1 and have a Terminal open. Also make sure that you've completed the previous videos that installed Apache, configured the firewall, started the relevant services, and modified the welcome.conf file. Before continuing with this exercise, you should be able to type into a Terminal firefox rhhost1.localnet.com and hit Enter. It should view the index.html file we created in the last video. If not, then troubleshoot that problem first. Now close Firefox. Viewing the error log will cut your troubleshooting time to a minimum. To view the log, open another Terminal tab and enter sudo tail -f /var/log/httpd/error_log and hit Enter. Type in your password if prompted. This will follow the error log file while you work and is a good…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.