• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp pages not running without putting 'www' on url

 
varun bihani
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Tomcat forum.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic