You are on page 1of 1

14.

configure web server with system's hostname


You don't have to change any configuration, just download the html file
indicated in the question to /var/www/html and rename it to index.html
yum -y install httpd
systemctl enable httpd
systemctl start httpd
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
cd /var/www/html
wget -O index.html http://server/file
15.
a. yum -y install mod_ssl
configuration file: /etc/httpd/conf.d/ssl.conf
b. download key, certificate and ca file to any locatio or default locat
ion
change the path of files in ssl.conf file (better to use default path)
(since default DocumentRoot is /var/www/html, you don't have to do any c
hange)
16. to add www.example.com
cd /etc/httpd/conf.d
vi www.conf
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/example.com
</VirtualHost>
#following is optional for /varr/www
<Directory /var/www/example.com>
require all granted
order deny,allow
deny from .my123.org
</Directory>
17.

You might also like