You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jessica Johnson <je...@internetmi.com> on 2007/05/24 18:30:35 UTC
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
RE: why is apache serving source for .jsp files?
Posted by Tim Lucia <ti...@yahoo.com>.
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 <ti...@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
Re: why is apache serving source for .jsp files?
Posted by Jessica Johnson <je...@internetmi.com>.
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 <ti...@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
RE: why is apache serving source for .jsp files?
Posted by Tim Lucia <ti...@yahoo.com>.
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
Re: why is apache serving source for .jsp files?
Posted by Mark Thomas <ma...@apache.org>.
Jessica Johnson wrote:
> If anyone can give me a hand, it would be much appreciated.
I haven't checked the site you referenced in detail but I did notice
the following:
1. Configuring contexts in server.xml
This is possible but not recommended since you need to restart Tomcat
if you make a change.
2. Having httpd and Tomcat serving files from the same directory
structure is dangerous. Unless you are very careful you are opening
yourself up to source code disclosure problems. Unless 1) you really
need to do this and 2) you really know exactly what you are doing I
would keep the httpd installation and the Tomcat installation
completely separate.
3. The instructions are part JK, part JK2. The references to JK2 files
names etc need to be changed to the JK ones.
I would suggest the following references:
httpd installation:
http://httpd.apache.org/docs/2.2/install.html
Tomcat installation
1. Download the 5.5.x zip from
http://tomcat.apache.org/download-55.cgi
2. Unzip it
3. Read RUNNING.txt for more info
JK install and configuration:
http://tomcat.apache.org/connectors-doc/generic_howto/quick.html
HTH,
Mark
---------------------------------------------------------------------
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