HTTPD (Hypertext Transfer Protocal Deamon) is a web server widely used with CentOS and Redhat Linux.It serves the webpages on clients requests. It is developed by Apache foundation. HTTPD is very easy in install and configure.
Installing httpd using yum.
# yum install httpd
Default httpd basic configuration are as following.
Configuration file: /etc/httpd/conf/httpd.conf Port: 80 Document root: /var/www/html Log file location: /var/log/httpd
Setup virtual host in httpd configuration file Append below setting in httpd configuration file
<VirtualHost *:80> ServerName www.tecadmin.net ServerAdmin suppor[email protected] DocumentRoot /var/www/html </VirtualHost>
Start httpd service
# service httpd start
Confugure httpd to start on system boot.
chkconfig httpd on