Hi there,

I also find a similar problem with my set up here (although it's more
consistant and I can make it do it, but don't know how to fix it really!

I run apache 1.3.33 / mod_ssl 2.8.22 and Tomcat 3.3.2 with mod_jk
1.2.10, mod_security is also compiled in but disabled as a module.

If I go to www.domain.com/context/index.jsp I get a page as expected

If I go to www.domain.com//context/index.jsp I get the source code, also
this isn't just on one context or the index.jsp file, we run quite a few
contexts and it consistently displays source code if you put double (or
more) slashes in the URL before the context.

Alias "/context/" "/www/content/www.domain.com/webapps/context/"
JkMount "/context/*.jsp" lb-332
JkMount "/context/servlet/*" lb-332

Where lb-332 is the connector defined in workers.properties

This only happens though for any context which is 'split' between Apache
and Tomcat, if for instance I send everything to tomcat by using


Any suggestions?

Regards

John Boocock
-----Original Message-----
From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2005 09:13
To: Tomcat Users List
Subject: Re: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

Hi Stanislav,

Stanislav Bauer schrieb:
> I'm trying to connect Apache with TC to serve www.domain.com for
> instance. I have a
>
> <VirtualHost>
>     ServerName www.domain.com
>     DocumentRoot /.../webapps/domain
>     JkMount /domain worker1
>     JkMount /domain/* worker1
>     JkAutoAlias /............
> </VirtualHost>
>
> But for certain pages I get the source code instead of the TC result.
> Wat directive I a have to use?
>
> Directly with :8080 the pages are fine.

Sounds like the pages, where the source code is displayed instead of the
result of the processed jsp file, are served by the Apache server itself
and not by Tomcat as intended. This is possible because the DocumentRoot
of your Apache seems to point directly to your Tomcat web application's
directory.

It is difficult to tell you more as you don't give a lot of information.


Best wishes

Lutz


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This email has been scanned for all viruses by the MessageLabs SkyScan
service.

**********************************************************************************
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***********************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to