Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Find the configuration file for Apache and modify it. ( Note: Expect to spend so

ID: 3710745 • Letter: F

Question

Find the configuration file for Apache and modify it. (Note: Expect to spend some time on this step.)

. You’ll need to consult the Apache documentation to identify the correct lines to add

Enable extended status by adding the appropriate line.

Add the appropriate lines for the associated virtual directory for server-status and restrict access to 192.168.x.x or whatever IP address your host is assigned.

http://httpd.apache.org/

This if for Apache in Cerntos 7. I need help with this question!!

Thanks

Explanation / Answer

Below is the solution of the above problem:

login as root user to configure the pache configurtion file

open terminal

goto the apche installconfiguration directory: #cd /etc/httpd/conf

before edit or ny chages backup the conf file: #cp httpd.conf httpd.conf.bak

backup is created of the configuration file

now open it using vim editor: # vim httpd.conf

go to the line and edit to restrict the ip address :

<Directory /var/www/path/to/your/web/documents>
   order allow,deny
   deny from 192.168.0.1
   deny from 192.168.10.20
   allow from all
</Directory>

"/var/www/path/to/your/web/documents" this is the directory which is block from the ip address 192.168.0.1,192.168.10.20

after that save press ESC button and :wq to save the file and restart the apache server.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote