Hi All,
Here is the problem description:-
I am using Linode VPS services for hosting our two web applications. These applications are deployed in tomcat. But when I am typing domain name in the browser, the tomcat default page(It works!) is showing every time.
The technology stack includes Apache, mod_jk and Tomcat. I have done the required configuration but seems missing something somewhere.
Can any please help me to solve this problem.
Following is the virtual host entry for one of the domain names
<VirtualHost *:80>
JkMount /* default
ServerAdmin
admin@domain1.com ServerName domain1.com
ServerAlias domain1.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?<!www\.)([a-z]+\.com)$ [NC]
RewriteRule /(.*)
http://www.%1/$1 [R=permanent,L]
DocumentRoot /var/lib/tomcat6/webapps/Domain1App/
ErrorLog /var/www/vhosts/domain1.com/logs/error.log
CustomLog /var/www/vhosts/domain1.com/logs/access.log combined
</VirtualHost>
Thanks,
Vikram