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…
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
Community Discussion
No community discussion yet for this question.