This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
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: 61092
    
  66

Moving to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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 ]
 
Don't get me started about those stupid light bulbs.
 
subject: jsp pages not running without putting 'www' on url