Well, if tomcat can display things fine then the problem is with apache or your ajp connector. I know that sometimes content types can get lost over the ajp connector and in those cases apache will just set the content type to whatever is the default in your config. Can you check what the default content type is set to in your apache config? I suspect it's text/plain which should mean that your html content would look like a plain text document instead of rendering as html.

If that's the case then try setting the default content type to text/html and see if that helps.

-- Allen


obie wrote:
Yes that is true, but I'm using mod_jk connector, and when I use JkMount /*
ajp13 (mount the apache to tomcat), for weird reason, it cannot read htm
files.  it able to read all type of files except htm/html




Allen Gilliland-3 wrote:
Well, first things first, can you access these urls on tomcat directly, without going through apache, and have them working?


obie wrote:
Hi, is there any specific configuration that needs to be done so that
tomcat
serve htm?, I even did (in web.xml)
<servlet-mapping>
        <servlet-name>
             jsp
        </servlet-name>
         <url-pattern>
             *.html
         </url-pattern>
     </servlet-mapping>
    <servlet-mapping>
but, it still error 404 (cant open any htm extension)... Can someone
help,
thanks


Shutra Zhou wrote:
Tomcat can serve html too.

2006/11/29, obie <[EMAIL PROTECTED]>:
Hi, can someone help me w/ my problem. I installed Roller 3.0 w/
apache-tomcat (using mod_jk).
My problems is, in the configuration I have to use JkMount /* ajp13
but, by doing this, it can open anything except html/htm extension
On the other hand, if I do
JkMount /*.jsp wrkr
JkMount /*.do wrkr
... (and so on)
then, I can see the html, but can not open certain servlet extension.
So my questions is ... when I use JkMount /* ajp13 (forwarding all
files
from apache to tomcat), how can I tell tomcat to recognize htm file
extension.
Thanks
--
View this message in context:
http://www.nabble.com/Help-With-Roller-Incubation-3.0-tf2721520s12275.html#a7589436
Sent from the Roller - User mailing list archive at Nabble.com.




Reply via email to