Virtual Hosting and Tomcat and apache example


for apache product:-


apache server logo 
<VirtualHost *:80>
   ServerAdmin webmaster@dummy-host.example.com
   DocumentRoot /var/www/html/websitename
   ServerName www.websitename.com
   ErrorLog logs/web_error_log
 CustomLog logs/web-access_log common
</VirtualHost> 



 
for tomcat product

tomcat logo 
<VirtualHost *:80>
    ServerName websitename.com
    ServerAlias www.websitename.com
    ServerAlias localhost
    ServerAdmin contact@nitish.info
    ErrorLog logs/home.net-errorlog
    CustomLog logs/home.net-access.log common
<LocationMatch />


     ProxyPass ajp://localhost:8009/tomcatproduct/
     ProxyPassReverse ajp://localhost:8009/tomcatproduct/
</LocationMatch>

</VirtualHost>