How do you set up a virtual host in Apache?

Answer Posted / abhay

<VirtualHost www.test.com>
ServerAdmin admin@test.com
DocumentRoot /home/apache/share/htdocs/hostedsites
ServerName www.test.com
ErrorLog /home/apache/logs/error/hostedsites/error_log
TransferLog /home/apache/logs/access/hostedsites/access_log
</VirtualHost>

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need programming skills to install apache in my system?

484


What is loadmodule in apache?

494


How to hide server version details in http response header?

461


What do you mean by a valid servername directive?

557


How do I disable directory indexing?

512






Is apache web server free?

507


Is apache an operating system?

513


What are the different flavor of apache web server you know?

489


Does ubuntu use systemd?

509


How do I know if apache is installed?

494


Can we do automatically roll over the apache logs at specific times without having to shut down and restart the server?

525


What do you mean by documentroot of apache?

514


What is apache virtual host?

478


What is the difference between a restart and a graceful restart of a web server?

477


I use IIS 6 and Apache 2.0.52 and I want to need connector IIS with tomcat. My tomcat using 8080 IIS using 80 my Apache application name is workspace and how can I use http://myserverip/workspace ? with isapi or anaother connector Best regards.

1665