Web
server configuration with one than one web site (VIRTUAL HOSTING)
(1)
Install
the web server packages by yum server.
[root@www
/]# yum install httpd*
(2)
Open
the httpd.conf file
[root@www
/] vim /etc/httpd/conf/httpd.conf
(3) Make changes like the below in the httpd.conf file
(4)
Make
index.html & fb.html file in /var/www/html directory
[root@www
/]# cd /var/www/html/
[root@www
html]# vim index.html
[root@www html]# vim fb.html
(5)
Run syntax check for config files
[root@www
html]# httpd –t
Syntax OK
(6)
Restart
the httpd service
[root@www html]# /etc/init.d/httpd restart
Stopping httpd:
[ OK ]
Starting httpd:
[ OK ]
(7)
Open Firefox for testing the working of Web
Server.
No comments:
Post a Comment