The hypertext transfer protocol (HTTP) was originally designed for transferring word wide web (www) documents and has been extended to transfer other types of files as well. Its most common use is transferring web pages between a web browser and a web server.
Installing HTTP
Note: You must install yum before performing HTTP
installation.
- HTTP installing command
#yum install http*
#yum install httpd*
- Navigating to http root directory and create an index.html file
#cd /var/www/html
#Cat>index.html
Welcome to the world of redhat
From Digesh Acharya
- Configuring the httpd.conf file
#vim /etc/httpd/conf/httpd.conf
#<virtualhost
* : 80>
#serveradmin
192.168.122.3
#DocumentRoot
/var/www/html
#servername
192.168.122.3
#<virtualhost >
- Starting http services
#service httpd restart
After doing all this open up your browser and open http server ip.
Post a Comment