Re: [users@httpd] mod_rewrite and Location(Match)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/28/06, Alexander Lazic <al-httpdusers@xxxxxxx> wrote:
> >> But when i deaktivate the RewriteRule in the VirtualHost and aktivate
> >> in the global Scope the apache make the request to the Appserver.
> >
> >That's a confusing problem description, but I think what you want is
> >RewriteEngine On
> >RewriteOptions inherit
> >in the <VirtualHost> container.
>
> After rereading you are right, sorry :-(
>
> I try to make it cleaner.
>
> With LocationMatch i can make a basic-auth area:
>
> ---
> <LocationMatch "apps/test">
>   AuthType Basic
>   AuthName "Auth-Part"
>   AuthUserFile /usr/local/apache/conf/.auth1htpasswd
>   AuthGroupFile /usr/local/apache/conf/.auth1htgroup
>
>   <Limit GET POST>
>     require group authgr1
>   </Limit>
> </LocationMatch>
> ---
>
> How can i make this similar for a part of query-string?

You were going in the right direction: you need to use mod_rewrite.  I
thought that you explained that it worked when placed outside the
<VirtualHost> but not inside.  If so, you just leave it outside, but
set the inherit option as described above.

And you should remove the <Limit GET POST> and </Limit> lines, which
are unnecessary and quite possibly a security risk.  See the docs for
<Limit>.

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux