Answer Posted / krishna
apache provide two type of virtual hosting 1- ip based and
2- name based.
to configure name based your dns should work properly.
go to the /etc/httpd/conf/httpd.conf file and remove # from
the start of of Namevertualhost *:80
and than at the end of file write the content below
<VirtualHost "IP of your apache server":80>
ServerAdmin root@krishna.com
DocumentRoot /var/www/krishna/krishna.html
DirectoryIndex krishna.html
ServerName www.krishna.com
ErrorLog /home/apache/logs/error/hostedsites/error_log
TransferLog /home/apache/logs/access/hostedsites/access_log
</VirtualHost>
restart your httpd service by running the command
Service httpd restart or /etc/init.d/httpd restart
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
I am configuring APACHE Server on SOLARIS-10. I am having some problem while configuring the httpd.conf. Can any one help me to find out the root directory of APACHE server. How can I publish my website through it?
What is apache virtual host?
Which module is required to have redirection possible?
What is meant by a valid server name directive?
what is use of apache in web server?
How does systemd work?
What is apache access?
What is apache server and how it works?
Does nginx need apache?
How does apache work?
How to configure your very first production web sever?
How to ensure apache process run with non-root/nobody user?
What type of ip is needed for apache web servers to host a website?
What’s a distinction between apache and nginx net server?
Is apache an open source?