typing domain name showing default Tomcat home page
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
ServerAdmin
ServerName domain1.com
ServerAlias domain1.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?
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
Thanks,
Vikram
3 Replies
I have tried with following entries and restarted Apached but still no luck
ServerName domain1.com
ServerAlias