Configuring the web server (Apache Server)

01. Check the necessary RPM
#rpm –q httpd

02. Developed a web site and copied it in to
/var/www/html folder
If you have multiple web sites you can keep them in sub folders in the above location
The web site home page must be named as index followed by the web developing language extension.
Ex – index.htm, index.php , index.asp

03. Publishing the web site
#nano /etc/httpd/conf/httpd.conf
Go to the end of file
Ex – www

<VirtualHost>  // IP for the web site in DNS
ServerAdmin  // web server admin email for feedback
DocumentRoot /var/www/html/websitefoldername   //web site location
ServerName   //web site name

04. Save and Exit the file

05. Start the service
#service httpd start
#chkconfig httpd on


Post a Comment