You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mamta Singh <ma...@gmail.com> on 2008/04/08 17:04:01 UTC
[users@httpd] Error: [warn] Useless use of AllowOverride
Hi all,
I have apache2.2 and tomcat 5.5 installed. when ever i start apache server i
got this warning: [warn] Useless use of AllowOverride in line .....
I checked these line numbers are in mod_jk.conf file which has been
auto-generated by tomcat. These lines are:
<Location "/servlets-examples/WEB-INF/*">
AllowOverride None => on this line
deny from all
</Location>
<Location "/servlets-examples/META-INF/*">
AllowOverride None => on this line
deny from all
</Location>
...
Does any one have idea why I am getting this warning.
Thanks
Re: [users@httpd] Error: [warn] Useless use of AllowOverride
Posted by Mamta Singh <ma...@gmail.com>.
Thanks for the quick reply. You are right AllowOverride should be in
Directory context and I have that correctly in *apache2.conf.*
But it is also written in Location context in *mod_jk.conf *which has
generated automatically and because of which it is giving me warning.
I don't understand why it is so as I didn't write anything it was
autogenerated by tomcat.
On Tue, Apr 8, 2008 at 10:18 AM, Neil A. Hillard <
neil.hillard@agustawestland.com> wrote:
> Hi,
>
>
> Mamta Singh wrote:
>
> > Hi all,
> >
> > I have apache2.2 and tomcat 5.5 installed. when ever i start apache
> > server i got this warning: [warn] Useless use of AllowOverride in
> > line .....
> >
> > I checked these line numbers are in mod_jk.conf file which has been
> > auto-generated by tomcat. These lines are:
> >
> > <Location "/servlets-examples/WEB-INF/*">
> > AllowOverride None => on this line
> > deny from all
> > </Location>
> >
> > <Location "/servlets-examples/META-INF/*">
> > AllowOverride None => on this line
> > deny from all
> > </Location>
> >
> > ...
> > Does any one have idea why I am getting this warning.
> >
>
> Yes - http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride shows
> that AllowOverride is only valid in a Directory context. You're trying to
> use it in a location where it doesn't make sense.
>
> HTH,
>
> Neil.
>
>
> --
> Neil Hillard neil.hillard@agustawestland.com
> AgustaWestland http://www.whl.co.uk/
>
> Disclaimer: This message does not necessarily reflect the
> views of Westland Helicopters Ltd.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Error: [warn] Useless use of AllowOverride
Posted by "Neil A. Hillard" <ne...@agustawestland.com>.
Hi,
Mamta Singh wrote:
> Hi all,
>
> I have apache2.2 and tomcat 5.5 installed. when ever i start apache
> server i got this warning: [warn] Useless use of AllowOverride in
> line .....
>
> I checked these line numbers are in mod_jk.conf file which has been
> auto-generated by tomcat. These lines are:
>
> <Location "/servlets-examples/WEB-INF/*">
> AllowOverride None => on this line
> deny from all
> </Location>
>
> <Location "/servlets-examples/META-INF/*">
> AllowOverride None => on this line
> deny from all
> </Location>
>
> ...
> Does any one have idea why I am getting this warning.
Yes - http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride shows
that AllowOverride is only valid in a Directory context. You're trying
to use it in a location where it doesn't make sense.
HTH,
Neil.
--
Neil Hillard neil.hillard@agustawestland.com
AgustaWestland http://www.whl.co.uk/
Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org