Apache server Configuration How to setup Web Server configuration in rhel5

system1: httpd server configuration setup
Step 1:Configure dns
Step 2:Install http packages
#yum install httpd
Step 3:Create html file
Create html file
#vim /var/www/html/main.html
<html>
<head><title>Sample Web Page</title></head>
<body>
<font size=”40” color=”FF0000”>
<marquee>This is Home Page of Rhel5.com</marquee>
</font></body></html>
Step 4: Add html page to http configuration file
#vim /etc/httpd/conf/httpd.conf
Line no: 390
Directory Index main.html index.html index.html.var
Step 5:restart the http service
#chkconfig httpd on
#service httpd restart
sys1:
add dns entries in /etc/resolv.conf
#vim /etc/resolv.conf
search rhel5.com
nameserver 192.168.0.10
Step 6:open firefox and type the following url in address bar
http://system1.rhel5.com
Finally Apache server httpd server configure successfully

Post a Comment

0 Comments