You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stanislav Bauer <sb...@wd.cz> on 2005/05/13 09:45:40 UTC

mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

Hi,

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.

Thanx

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

Posted by Stanislav Bauer <sb...@wd.cz>.
OK, which information would help you. Is it necessary to point the 
DocumentRoot somwhere else? I thought it doesnt matter where the sources 
lie.

Btw you are right, I point DocumentRoot directly to webapps under TC, so 
I dont have to have it twice.

Thanx
SB

Lutz Zetzsche wrote:

>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

Posted by Lutz Zetzsche <Lu...@sea-rescue.de>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org