nerdexam
Red_Hat

EX300(23Q) · Question #12

rename the downloaded file in to index.html. copy the file into the document root. Do not make any modification to with the content of the index.html. Clients within my22ilt.org should NOT access…

yum install httpd-manual systemctl start httpd systemctl enable httpd firewall-cmd --permanent --add-service=http firewall-cmd --reload wget http://station.network0.example.com/pub/rhce/rhce.html mv rhce.html /var/www/html/index.html cd /etc/httpd/conf.d/ vim server1.conf…

Configure Apache HTTP Server

Question

  • rename the downloaded file in to index.html.
  • copy the file into the document root.
  • Do not make any modification to with the content of the index.html.
  • Clients within my22ilt.org should NOT access the webserver on your systems

Explanation

yum install httpd-manual

systemctl start httpd systemctl enable httpd

firewall-cmd --permanent --add-service=http firewall-cmd --reload

wget http://station.network0.example.com/pub/rhce/rhce.html

mv rhce.html /var/www/html/index.html

cd /etc/httpd/conf.d/

vim server1.conf <VirtualHost *:80> ServerAdmin [email protected] ServerName server1.example.com DocumentRoot /var/www/html CustomLog "logs/server1_access_log" combined ErrorLog "logs/server1_error_log" </VirtualHost> <Directory "/var/www/html"> Requireall Require all granted Require not host my22ilt.org </Directory> </VirtualHost>

systemctl restart httpd

Topics

#Apache httpd#document root#IP-based access control#Directory directive

Community Discussion

No community discussion yet for this question.

Full EX300(23Q) Practice