RE: [users@httpd] IP restriction with rewriterule

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

 



Ok sorry, give an example,
I have something like:

RewriteRule ^/samba/(.*)             http://host1/samba/$1   [P]
RewriteRule ^/Webmail/(.*)           http://host2/webmail/$1 [P]
RewriteRule ^/icons/(.*)             http://host3/icons/$1   [P]

And I want only private IP can access to samba and for webmail and icons no
restriction.  
Can I use <Location> with rewriteRule? 

/jerome

-----Message d'origine-----
De : jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] De la part de Joshua Slive
Envoyé : jeudi 26 octobre 2006 15:32
À : users@xxxxxxxxxxxxxxxx
Objet : Re: [users@httpd] IP restriction with rewriterule

On 10/26/06, Jerome GAUTHIER <jgauthier@xxxxxxxxxxx> wrote:

> I need help to restrict some IP address to access for only one
rewriteRule.
>
>
>
> I have a lot of rewriterule on httpd-2.0.59 access from internet but for
> some of else I just want to access for the inside with private source IP.
>
> The solution with allow/deny seem not possible because it's not a
directory
> and Rewritecond %{REMOTE_ADDR} not easy !

Your problem description isn't all that clear, but that solution that
immediately comes to mind is putting the restrictions in a <Location>
section.

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


---------------------------------------------------------------------
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