Page 129 - RHEL8 BOOK
P. 129

Apache web servers



                                                                                 1 9 2 .1 6 8 .1 .2








                                                                                 1 9 2 .1 6 8 .1 .3

                1 9 2 .1 6 8 .1 .1





                                                                                 1 9 2 .1 6 8 .1 .1

          The Apache HTTP Server or simply Apache, is free and open-source cross-platform web server software
          developed and maintained by Apache Software Foundation. Apache is a easy to learn and configure web
          server providing an ability to host websites mainly via HTTP or HTTPS protocols. Under RHEL 8 /
          CentOS 8 system Apache webserver is know under name  httpd .
               Packages
                 S

               Port Numbers
                 80 http

               Configuration File
                 /etc/httpd/conf/httpd.conf

               Service
                 httpd

               Daemon
                 httpd

          Port Numbers: 80 (HTTP) and 443 (HTTPS)

          1. Install the packages
          [root@comp1 ~]# rpm -ivh httpd* --force –aid

          2. Configure the host file
          [root@comp1 ~]#vi /etc/hosts
          192.168.1.1  www.iiht.com

          3. Open configuration for editing(In RHEL7)
          [root@comp1~]# vi etc/httpd/conf/httpd.conf
          ServerAdmin root@iiht.com                             #86
          ServerName www.iiht.com:80                            #95
          DocumentRoot /var/www/html                            #119
          DirectoryIndex    iiht.html                           #164


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