You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jack J. Coleman" <ja...@bellsouth.net> on 2006/02/23 18:40:30 UTC
mod_jk PUT request-method returns 405 Error
I was using Tomcat standalone and I could send files to the server with
the PUT request-method with no problems (in a REST Web Service). Now
that I have Apache hooked into Tomcat with mod_jk, the PUT request gives
me a 405 error (method not allowed). Does anyone know how to set this up
so that the PUT request gets forwarded from Apache to a servlet or a JSP
(through mod_jk)? Does mod_jk even support the forwarding of PUT
requests? I am running Apache 2.0.50, Tomcat 5.5 and mod_jk 1.2.15 all
on RedHat Linux.
Any help would be appreciated.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by Mladen Turk <ml...@jboss.com>.
Jack J. Coleman wrote:
> I do not have any Location directives and I am not using auto aliasing.
> My httpd.conf has a simple VirtualHost directive.
>
> Even so, I tried moving the JSP outside of the WEB-INF, but still no luck.
>
> The request doesn't seem to be getting to mod_jk at all. In the Apache
> access_log I can see the 405 error message, but in the mod_jk log (with
> debug turned on), I see nothing about that request. Apache seems to be
> stopping the PUT in its tracks.
>
No idea then. Unless you have some Limit directive, check the
access.log if you are hitting the correct location.
> Is there some way to tell mod_jk to handle the PUT request (like you
> would for a cgi script)?
>
No need, mod_jk is a handler, and as such is independent of the http
method.
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by "Jack J. Coleman" <ja...@bellsouth.net>.
I do not have any Location directives and I am not using auto aliasing.
My httpd.conf has a simple VirtualHost directive.
Even so, I tried moving the JSP outside of the WEB-INF, but still no luck.
The request doesn't seem to be getting to mod_jk at all. In the Apache
access_log I can see the 405 error message, but in the mod_jk log (with
debug turned on), I see nothing about that request. Apache seems to be
stopping the PUT in its tracks.
Is there some way to tell mod_jk to handle the PUT request (like you
would for a cgi script)?
<Directory /www/docs>Script PUT /cgi-bin/put.cgi</Directory>
> Then you must have some config value that forbids PUTs.
> See if you have some Location directive that contains
> a path prefix of JkMount.
>
> Also try to put your .jsp files outside WEB-INF.
> mod_jk explicitly denies the access to WEB-INF and
> META-INF locations (if you are using auto aliasing).
>
> Regards,
> Mladen.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by Mladen Turk <ml...@jboss.com>.
Jack J. Coleman wrote:
> Apache.
>
Then you must have some config value that forbids PUTs.
See if you have some Location directive that contains
a path prefix of JkMount.
Also try to put your .jsp files outside WEB-INF.
mod_jk explicitly denies the access to WEB-INF and
META-INF locations (if you are using auto aliasing).
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by "Jack J. Coleman" <ja...@bellsouth.net>.
Apache.
> BTW, is 405 issued by Apache or Tomcat?
>
> Regards,
> Mladen.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by Mladen Turk <ml...@jboss.com>.
Jack J. Coleman wrote:
> Thanks for the response Mladen.
>
> My config file has the following:
> JKMount /accounts/account/* wrkr
>
Well, that's certainly a better solution.
BTW, is 405 issued by Apache or Tomcat?
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by "Jack J. Coleman" <ja...@bellsouth.net>.
Thanks for the response Mladen.
My config file has the following:
JKMount /accounts/account/* wrkr
Where "/accounts/account/*" is setup as a sevlet mapping to a JSP in
WEB-INF/jsp
If the documentRoot in Apache doesn't allow the PUT method, what about
other paths?
I know you can set up a PUT request in Apache with a cgi script, but I
was hoping that mod_jk could handle this without cgi.
Mladen Turk wrote:
> Jack J. Coleman wrote:
>
>> Any help would be appreciated.
>>
>
> It's hard to tell without your config files
> but I bet you've done something like:
>
> JkMount /* worker
>
> Since by default the DocumentRoot in Apache does
> not allow PUT methods, you are receiving 405.
>
> Regards,
> Mladen.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk PUT request-method returns 405 Error
Posted by Mladen Turk <ml...@jboss.com>.
Jack J. Coleman wrote:
> Any help would be appreciated.
>
It's hard to tell without your config files
but I bet you've done something like:
JkMount /* worker
Since by default the DocumentRoot in Apache does
not allow PUT methods, you are receiving 405.
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org