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
Does apache require java?
Can I serve content out of a directory other than the documentroot directory?
Does amazon use apache?
How to set up a virtual host in apache?
How to enable php scripts on your server?
How to ensure apache process run with non-root/nobody user?
Which is better apache or nginx?
Is apache license free?
Can you change the listening port from default to something else?
How to carry out apache efficiency benchmark?
What’s the mod_perl module?
What are the types of virtual hosts?
Your apache web-server is not starting, what steps would you follow to troubleshoot this.
Briefly explain apache web server?
In software testing Business requirements or FRD is given,u will have start preparing test cases. In the document only text box is mentioned for a particular option.So do u prepare test cases including special characters,numbers,alphabets,alphanumeric or only for some. Pls help me out.