Page 130 - RHEL8 BOOK
P. 130

4. Create the webpage file with .html extension
          [root@comp1~]#cd /var/www/html
          [root@comp1html]#vi iiht.html
          <html>
                   <body bgcolor=yellow>
                       <marquee>
                                 <h1>This is IIHT website </h1>
                      </marquee>
                            <h6> Hosted in Linux Session</h6>
                   </body>
          </html>

          5. To restart the HTTP services
          [root@comp1 ~]# systemctl start httpd.service

          6. Enable the httpd service at boot time
          [root@comp1 ~]# systemctl enable httpd

          7. Accessing Webserver

               Open Mozilla or Fire Fox browser.
               In the address box type http://www.iiht.com and
               http://www.iiht.com

                                           Web Server Client Configuration

          1. Provide the IP Address of DNS Server
          [root@comp2 ~]#vi /etc/resolv.conf
          nameserver 192.168.1.1

          2. Add the websites information in host file.
          [root@comp2 ~]# vi /etc/hosts
          192.168.1.1  www.iiht.com

          3. Open Mozilla or Fire Fox browser.

               In the address box type http://www.iiht.com and
               http://www.iiht.com












                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           130
   125   126   127   128   129   130   131   132   133   134   135