#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 locationThe 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 fileEx – www
<VirtualHost 192.168.2.101> // IP for the web site in DNS
ServerAdmin webmaster@server.lk // web server admin email for feedback
DocumentRoot /var/www/html/websitefoldername //web site location
ServerName www.server.lk //web site name
</VirtualHost>
04. Save and Exit the file
05. Start the service
#service httpd start
#chkconfig httpd on
0 comments:
Post a Comment