Web Server Configuration in Redhat

By | 18/05/2012

Web server is a computer, which deliver web pages. Every web server will have atleast one static IP address and one domain name. When we request a website, for example (www.abc.com), this domain stored in a web server and web server have a static IP. Static IP of web server is stored in DNS, so our browser goes to web server by help of DNS record to fetch the webpage.

Here we are going to see how to configuration of web server in RHEL5

Before going to configure web server, make sure that following are done correctly

  • Hostname
  • Domainname
  • IP address
  • DNS configuration

Package: httpd*

Service: httpd

Port no: 80

Configuration file for viagra price fall web server: /etc/httpd/conf/httpd.conf

#vim /etc/httpd/conf/httpd.conf

Line: 267




To view line number “:se nu”

In desktop or any other directory, create a cost of daily cialis html file named as index.html . index.html http://viagraonline-edstore.com/ is the main page or home page of a web site, For testing simple html codes are sufficient.

Select Code
</p> <p><html></p> <p><head></p> <p><title> Web server configuration </title></p> <a style="text-decoration: none; color: inherit; cursor: default; outline: none;" href="http://cialisgeneric-toped.com/">cialis 5mg price comparison</a>  <p></head></p> <p><body></p> <p>Test page</p> <p></body></p> <p></head></p> <a style="text-decoration: none; color: inherit; cursor: default; outline: none;" href="http://pharmacycanada-rxedtop.com/">canadian xl pharmacy</a>  <p>


Desktop] #mv index.html /var/www/html

cialis black

Restart the httpd service.

#service httpd restart

#chkconfig httpd on


To check the web server configuration is correct or wrong, just do the following step i.e., -t followed bt httpd

#httpd -t


To see the webpage (index.html)

#elinks <Server IP>





Just go to any browser and give the IP ” ” in address bar

Browser –> Address bar –>



Post By prasad (110 Posts)

Website: →


About prasad

Prasad K has written 110 post in this blog.

Leave a Reply