Monday, March 19, 2012

Web/http Server Setup


Forword lookup zone file of DNS :

linux205 IN A IP_address

www IN CNAME linux205

# rpm -qa|grep http [to check package]

# vi /etc/httpd/conf/httpd.conf [configuration file]

Search

/User apache – User apache

Group apache

/ServerName – www.example.com: 80

/ServerAdmin – root@example.com

/DirectoryIndex - index.html index.html.var [hello.html hello.html.var]

/Listen- Listen 80

/DocumentRoot – “/var/www/html”, /MaxClients-150

# service httpd restart

# vi /var/www/html/hello.html

Test Server

Body bgcolor= “FFF245”>

How r u

Wellcome to test

:wq

# chmod 777 /var/www/html

# chown apache.apache /var/www/html/hello.html

# service httpd restart

No comments:

Post a Comment