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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joshua Slive Envoyé : jeudi 26 octobre 2006 15:32 À : users@httpd.apache.org Objet : Re: [EMAIL PROTECTED] IP restriction with rewriterule On 10/26/06, Jerome GAUTHIER <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]