aspose file tools
The moose likes Tomcat and the fly likes jsp pages not running without putting 'www' on url Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "jsp pages not running without putting Watch "jsp pages not running without putting New topic
Author

jsp pages not running without putting 'www' on url

varun bihani
Ranch Hand

Joined: Aug 11, 2003
Posts: 96
i am sorry if am putting this in wrong post(i am not sure)

neways i have integrated apache and tomcat..
i am able to run jsp pages as "http://www.xyz.com/jsp/ab.jsp" but am not able to run as "http://xyz.com/jsp/ab.jsp"

my httpd conf file entry is:

NameVirtualHost 209.25.178.53:80

<VirtualHost 209.25.178.53:80>
ServerAdmin webmaster@xyz.com
DocumentRoot /home/xyz
ServerName xyz.com
JkMount /*.jsp wrkr
JkMount /servlet/* wrkr
</VirtualHost>

my server.xml entry is:

<Context path="/jsp" docBase="/home/xyz/jsp/"
debug="0" reloadable="true" />
</Host>


<a href="http://www.galaxyweblinks.com" target="_blank" rel="nofollow">www.galaxyweblinks.com</a><br /><a href="http://www.freechatcode.com" target="_blank" rel="nofollow">www.freechatcode.com</a><br /><a href="http://www.onlinefamilytreemaker.com" target="_blank" rel="nofollow">www.onlinefamilytreemaker.com</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56153
    
  13

Moving to the Tomcat forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

probably because "www.foo.com" and "foo.com" are not the same domain.

You'll have to use your domain tools, and point the 'www' subdomain to your host, and then in httpd conf,

<VirtualHost 209.25.178.53:80>
ServerAdmin webmaster@xyz.com
DocumentRoot /home/xyz
ServerName xyz.com
ServerAlias www.xyz.com
JkMount /*.jsp wrkr
JkMount /servlet/* wrkr
</VirtualHost>
[ May 28, 2004: Message edited by: Mike Curwen ]
 
I agree. Here's the link: http://jrebel.com/download
 
subject: jsp pages not running without putting 'www' on url
 
Similar Threads
Filter Not Found in new deployment
Why is Apache serving the uncompiled page?
Apache SSL Module on Ubuntu
NameVirtualHost
File uploading problem