You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by William Lee <wl...@sendmail.com> on 2001/03/16 01:27:41 UTC
MIME type becomes plain text using mod_jk?
I remember seeing somebody posting something about this before. Anyway,
recently I tried using mod_jk, Turbine, and Apache but I got into a
problem. If I request a turbine servlet through mod_jk, the response
becomes plain text. This means when I connect to port 8080 and it would
work fine, but I would get plain text when I connect to port 80. What
gives?
Thanks,
Will
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: MIME type becomes plain text using mod_jk?
Posted by Christopher Elkins <ch...@scardini.com>.
On Thu, Mar 15, 2001 at 11:42:06PM -0800, William Lee wrote:
<snip>
> Attached are my server.xml and workers.properties files.
>
> BTW, I'm using VelocityOnlyLayout and don't have a problem when I
> connect to the port 8080. It's just that when I connect to 80 though
> mod_jk I have this problem. Somehow the MIME type get dropped so it
> appears as plain text. I got the same output content though.
>
> Thanks a lot for your help.
>
Your config looks right to my naive eyes. This definitely appears to be a
mod_jk problem (maybe a Windows-specific one), therefore I'd recommend posting
to the tomcat-user list.
Sorry I couldn't offer more help.
> Will
>
--
Christopher Elkins
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: MIME type becomes plain text using mod_jk?
Posted by Sean Legassick <se...@informage.net>.
In message <3A...@sendmail.com>, William Lee
<wl...@sendmail.com> writes
>Oh BTW, I've tried this on IE 5.5 and it works. Netscape, however,
>treats the page as plain text and display it so.
>
>Maybe somebody can tell me why?
Are you using VelocityOnlyLayout ? If so it's because older Turbine's
weren't setting the content-type correctly, and with mod_jk (for some
reason) the default content-type is text/plain not text/html.
If you can, try latest CVS or wait for tdk1.1a12
--
Sean Legassick
sean@informage.net
Als Mensch kann mir nichts menschliches Fremd sein
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: MIME type becomes plain text using mod_jk?
Posted by William Lee <wl...@sendmail.com>.
Oh BTW, I've tried this on IE 5.5 and it works. Netscape, however,
treats the page as plain text and display it so.
Maybe somebody can tell me why?
Will
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: MIME type becomes plain text using mod_jk?
Posted by William Lee <wl...@sendmail.com>.
I'm actually using Tomcat 3.2.1 with mod_jk. My mod_jk.conf looks like:
###################################################################
# Auto generated configuration. Dated: Thu Mar 15 16:41:16 PST 2001
###################################################################
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/conf/workers.properties"
JkLogFile
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/logs/mod_jk.log"
#
# Log level to be used by mod_jk
#
JkLogLevel error
... Some other stuff
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
#########################################################
# Auto configuration for the /ListEditor context starts.
#########################################################
#
# The following line makes apache aware of the location of the
/ListEditor context
#
Alias /ListEditor
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/webapps/ListEditor"
<Directory
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/webapps/ListEditor">
Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to
tomcat
#
JkMount /ListEditor/servlet/* ajp13
JkMount /ListEditor/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/ListEditor/WEB-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/webapps/ListEditor/WEB-INF/">
AllowOverride None
deny from all
</Directory>
#
# The following line prohibits users from directly accessing META-INF
#
<Location "/ListEditor/META-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory
"C:/cygwin/home/wlee/tomcat/3.2/jakarta-tomcat-3.2.1/webapps/ListEditor/META-INF/">
AllowOverride None
deny from all
</Directory>
#######################################################
# Auto configuration for the /ListEditor context ends.
#######################################################
Attached are my server.xml and workers.properties files.
BTW, I'm using VelocityOnlyLayout and don't have a problem when I
connect to the port 8080. It's just that when I connect to 80 though
mod_jk I have this problem. Somehow the MIME type get dropped so it
appears as plain text. I got the same output content though.
Thanks a lot for your help.
Will
The Turbine app is called "ListEditor".
Christopher Elkins wrote:
>
> On Thu, Mar 15, 2001 at 04:27:41PM -0800, William Lee wrote:
> > I remember seeing somebody posting something about this before. Anyway,
> > recently I tried using mod_jk, Turbine, and Apache but I got into a
> > problem. If I request a turbine servlet through mod_jk, the response
> > becomes plain text. This means when I connect to port 8080 and it would
> > work fine, but I would get plain text when I connect to port 80. What
> > gives?
> >
> Hmmm...can you post some more details of your config? I just setup a Turbine
> app on my box today using Apache+Tomcat 3.2.1+mod_jk, and it's working just
> fine.
>
> Useful files to examine:
> mod_jk.conf
> server.xml
> workers.properties
>
> > Thanks,
> > Will
> >
>
> --
> Christopher Elkins
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: MIME type becomes plain text using mod_jk?
Posted by Christopher Elkins <ch...@scardini.com>.
On Thu, Mar 15, 2001 at 04:27:41PM -0800, William Lee wrote:
> I remember seeing somebody posting something about this before. Anyway,
> recently I tried using mod_jk, Turbine, and Apache but I got into a
> problem. If I request a turbine servlet through mod_jk, the response
> becomes plain text. This means when I connect to port 8080 and it would
> work fine, but I would get plain text when I connect to port 80. What
> gives?
>
Hmmm...can you post some more details of your config? I just setup a Turbine
app on my box today using Apache+Tomcat 3.2.1+mod_jk, and it's working just
fine.
Useful files to examine:
mod_jk.conf
server.xml
workers.properties
> Thanks,
> Will
>
--
Christopher Elkins
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org