Question

create a directory inside your web root with the following properties a. Directory name should be...

create a directory inside your web root with the following properties
a. Directory name should be your last name ( lowercase )
b. directory should contain an index.html file with your first name, last name and student ID
c. the directory should be accessible via browser by typing labtest.lastName. where LastName is your last name
d. the directory should be password protected using the following credentials:
i. username: firstname ( your first name)
ii. password: lastname ( your last name )
e. the directory should not be accessible for both 101site.net and 102.104.12.12

Homework Answers

Answer #1

1) The web of the server depends of the type of webserver you are using. if you are using apache2 it will be "/var/www/html" or if you are using lampp it will be "/opt/lampp/htdocs" if you are using xampp in windows it can be "C:\xampp\htdocs". I am using xampp in windows so I created a directory with my last name in the webroot. I also created an index.html file which contains firstname, lastname and student id

screenshots:

To password protect the directory we can use ".htaccess" file with an ".htpasswd" authentication file which contains encrypted username and password to protect our directory. the .htaccess file should be placed in the directory and the .htpasswd should be placed out of the directory. After that we should link .htaccess file to .htpasswd for authentication

Code:

.htaccess file

.htpasswd can be generated online

After linking the files, we can successfully authenticate to our directory

To block our site access to both 101site.net and 102.104.12.12 we can restrict them through .htaccess file in the directory we created.

We use htaccess rewrite rules to deny access to the both website and ip address mentioned.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write Linux command lines to do the following: 1. Create a directory with name “yourName_ID” 2....
Write Linux command lines to do the following: 1. Create a directory with name “yourName_ID” 2. Create a file with name “yourLastName.txt” inside the directory created in step.1 3. Write inside the created file exactly the following content (you may use editors such as vim, pico, ….): Linux Lab Lab. ToDo#1 Summer Semester 2019/2020# 4. Display the first 2 lines of the file. 5. Change the permission of the file to read write and execute for owner, groups and others....
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective...
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective 3.2) Linux Distribution: Fedora (non-root user & password needed) Desktop Environment: GNOME 3 1.   If you have not already done so, boot up your computer (or virtual machine) to start the Fedora Linux distribution. 2.   When the machine has booted up, access the tty2 virtual terminal by pressing Ctrl+Alt+F2. 3.   Log on to a regular user’s account by typing in the username at the...
Create a header file (lastname_employeerec.h) that defines an employee data structure (sEMPLOYEE) that can be linked...
Create a header file (lastname_employeerec.h) that defines an employee data structure (sEMPLOYEE) that can be linked onto a linked list. The data structure should have the following fields: a. First Name (firstName) b. Last Name (lastName) c. Employee ID (id) d. Start Year (startYear) e. Starting Salary (startSalary) f. Current Salary (currentSalary) g. next Create a library of functions that operate on this data structure. The source code for the functions should be in lastname_employeerec.c and the function prototypes should...
Overview Your assignment is to complete a wireless network design for a small company. You will...
Overview Your assignment is to complete a wireless network design for a small company. You will place a number of network elements on the diagram and label them appropriately. A network diagram is important to communicate the design features of a network between network administrators, system administrators and cyber-security analysts. It helps to create a shared mental model between these different technologists, yet each will have their own perspective on what is important to have documented on the diagram. Please...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT