tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Lucia" <timlu...@yahoo.com>
Subject RE: why is apache serving source for .jsp files?
Date Thu, 24 May 2007 20:32:03 GMT
I'm dumb for not noticing this early.  The jsp-examples path is not
JkMount'd nor is there a mapping for *.jsp.  That is your problem.  I
presumed it was a VirtualHost problem.

Tim


> -----Original Message-----
> From: unidad22jj@gmail.com [mailto:unidad22jj@gmail.com] On Behalf Of
> Jessica Johnson
> Sent: Thursday, May 24, 2007 1:16 PM
> To: Tomcat Users List
> Subject: Re: why is apache serving source for .jsp files?
> 
> Should have mentioned that.
> http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp and the
> other examples also show the jsp source.  The only way it works is
> using port 8080 on localhost.
> 
> jessica
> 
> On 5/24/07, Tim Lucia <timlucia@yahoo.com> wrote:
> > What happens if you make the request of localhost?
> >
> > > -----Original Message-----
> > > From: unidad22jj@gmail.com [mailto:unidad22jj@gmail.com] On Behalf Of
> > > Jessica Johnson
> > > Sent: Thursday, May 24, 2007 12:31 PM
> > > To: users@tomcat.apache.org
> > > Subject: why is apache serving source for .jsp files?
> > >
> > > Hi all,
> > >
> > > I have been following this excellent tutorial http://apacheguide.org/
> to
> > > setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly
working,
> > > except that http://mydomain.com/jsp-examples/num/numguess.jsp is
> showing
> > > the
> > > .jsp source.  If I log into my web server and go to
> > > http://localhost:8080/j<http://localhost:8080/jsp-
> examples/jsp2/el/basic-
> > > arithmetic.jsp>
> > > sp-examples/num/numguess.jsp<http://mydomain.com/jsp-
> > > examples/num/numguess.jsp>everything
> > > works as expected.  So based on this I am assuming that the
> > > problem is with the workers and mod_jk.  I've done some googling, but
> > > wasn't
> > > able to find any solutions.
> > >
> > > If anyone can give me a hand, it would be much appreciated.
> > >
> > > Below are the parts of all of the config files that I thought might be
> > > related to the problem.  Let me know if I should include more info.
> > > Thanks
> > > in advance to anyone who can point me in the right direction.
> > >
> > > jessica
> > >
> > >
> > > ***** Partial C:\Program Files\Apache Software
> > > Foundation\Apache2.2\conf\http.conf ******
> > >
> > > LoadModule php5_module "c:/php/php5apache2_2.dll"
> > > AddType application/x-httpd-php .php
> > > PHPIniDir "C:/php"
> > > Include "C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\auto\mod_jk.conf"
> > >
> > >
> > >
> > >
> > > ******* Complete C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\auto\mod_jk.conf ********
> > >
> > > ########## Auto generated on Wed May 23 19:03:26 CDT 2007##########
> > >
> > > <IfModule !mod_jk.c>
> > >   LoadModule jk_module "C:/Program Files/Apache Software
> > > Foundation/Apache2.2/modules/mod_jk.so"
> > > </IfModule>
> > >
> > > JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> > > /conf/jk/workers.properties"
> > > JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
> > > /logs/mod_jk.log"
> > >
> > > JkLogLevel emerg
> > >
> > >
> > >
> > > <VirtualHost localhost>
> > >     ServerName localhost
> > >
> > >     JkMount /lib ajp13
> > >     JkMount /lib/* ajp13
> > >
> > >     JkMount /htdocs ajp13
> > >     JkMount /htdocs/* ajp13
> > >
> > >     JkMount /cgi-bin ajp13
> > >     JkMount /cgi-bin/* ajp13
> > >
> > >     JkMount /include ajp13
> > >     JkMount /include/* ajp13
> > >
> > >     JkMount /error ajp13
> > >     JkMount /error/* ajp13
> > >
> > >     JkMount /icons ajp13
> > >     JkMount /icons/* ajp13
> > >
> > >     JkMount /proxy ajp13
> > >     JkMount /proxy/* ajp13
> > >
> > >     JkMount /manager ajp13
> > >     JkMount /manager/* ajp13
> > >
> > >     JkMount /conf ajp13
> > >     JkMount /conf/* ajp13
> > >
> > >     JkMount /logs ajp13
> > >     JkMount /logs/* ajp13
> > >
> > >     JkMount /modules ajp13
> > >     JkMount /modules/* ajp13
> > >
> > >     JkMount /bin ajp13
> > >     JkMount /bin/* ajp13
> > >
> > >     JkMount /host-manager ajp13
> > >     JkMount /host-manager/* ajp13
> > >
> > >     JkMount /manual ajp13
> > >     JkMount /manual/* ajp13
> > > </VirtualHost>
> > >
> > >
> > >
> > >
> > > ******** C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\jk\workers.properties ********
> > >
> > > [logger]
> > > level=DEBUG
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.log
> > > [config]
> > > file=C:/Program Files/Apache Software
> > > Foundation/Apache2.2/conf/workers2.properties
> > > debug=0
> > > debugEnv=0
> > >
> > >
> > > [shm]
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.shm
> > > size=1048576
> > >
> > > # socket channel
> > > [channel.socket:localhost:8009]
> > > port=8009
> > > host=127.0.0.1
> > >
> > > # worker for the connector
> > > [ajp13:localhost:8009]
> > > channel=channel.socket:localhost:8009
> > >
> > > [status:status]
> > >
> > > [uri:/status/*]
> > > worker=status:status
> > >
> > > [uri:/jsp-examples/num/*.jsp]
> > > worker=ajp13:localhost:8009
> > >
> > > [uri:/*.jsp]
> > > worker=ajp13:localhost:8009
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ******** C:/Program Files/Apache Software
> > > Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to
> > > create this file, but then I noticed the server logs were compaining
> that
> > > there was no C:\Program Files\Apache Software Foundation\Tomcat
> > > 5.5\conf\jk\workers.properties so I just copied this file to that
> location
> > > and changed the config file reference.  Not sure if that was the right
> > > thing
> > > to do....) *******
> > >
> > >
> > > [logger]
> > > level=DEBUG
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.log
> > > [config]
> > > file=C:/Program Files/Apache Software
> > > Foundation/Apache2.2/conf/workers.properties
> > > debug=0
> > > debugEnv=0
> > >
> > >
> > > [shm]
> > > file=C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk2.shm
> > > size=1048576
> > >
> > > # socket channel
> > > [channel.socket:localhost:8009]
> > > port=8009
> > > host=127.0.0.1
> > >
> > > # worker for the connector
> > > [ajp13:localhost:8009]
> > > channel=channel.socket:localhost:8009
> > >
> > > [status:status]
> > >
> > > [uri:/status/*]
> > > worker=status:status
> > >
> > > [uri:/jsp-examples/num/*.jsp]
> > > worker=ajp13:localhost:8009
> > >
> > > [uri:/*.jsp]
> > > worker=ajp13:localhost:8009
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message