Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Sun, Sep 6, 2009 at 4:54 PM, Markus Wolfmakuswol...@yahoo.com wrote: I have directories that contain IP addresses. /171.35.110.12_some_characters /172.30.97.4_some_other_random_characters Now I would like to only allow access to a folder in .htaccess when the referer IP address matches

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
--- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com wrote: What do you actually mean with the referer IP address. Sorry, yes, it should have said REMOTE_IP. Or maybe you want to restrict access based on client IP? That is something different, however. That's what I would like

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
What do you actually mean with the referer IP address. Sorry, yes, it should have said REMOTE_IP. Uhm, REMOTE_ADDR. ;) - The official User-To-User support forum of the Apache HTTP Server Project. See

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolfmakuswol...@yahoo.com wrote: --- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com wrote: What do you actually mean with the referer IP address. Sorry, yes, it should have said REMOTE_IP. Or maybe you want to restrict access based on

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolfmakuswol...@yahoo.com wrote: --- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com wrote: What do you actually mean with the referer IP address. Sorry, yes, it should have said REMOTE_IP. You can do something like that with rewrite rules.

[us...@httpd] mod_rewrite help

2009-09-07 Thread Lars
Hello list! I know basic mod_rewrite, not much, but enough to create basic rules. Now I need to create a rule that can handle this situation: * Work under the root (/) folder * Don't do anything under the /secure/ folder * Don't do anything with *.js, *.jpg * Rewrite everything else to

Re: [us...@httpd] mod_rewrite help

2009-09-07 Thread Eric Covener
On Mon, Sep 7, 2009 at 8:08 AM, Larssunb...@gmail.com wrote: Hello list! I know basic mod_rewrite, not much, but enough to create basic rules. Now I need to create a rule that can handle this situation:  * Work under the root (/) folder  * Don't do anything under the /secure/ folder  *

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
--- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com wrote: RewriteCond    %{REMOTE_ADDR}             !$1 RewriteRule     /(\d+\.\d+\.\d+\.\d+)_.*      -      [F] Thank you very much. That seems to do the trick. I'll give that a go.

Re: [us...@httpd] mod_rewrite help

2009-09-07 Thread Lars
Wow, that was a fast answer :) I tried it, and got RewriteCond: bad flag delimiters and 500 error. Saw that there was an extra space in the RewriteCond %{REQUEST_URI} ! \.(js|jpg)$ rule, so changed it to RewriteCond %{REQUEST_URI} !\.(js|jpg)$. Got rid of the 500 error, but now the rule didnt do

[us...@httpd] Mod_Evasive Mod_Deflate: Apache running under NAS

2009-09-07 Thread Ruben
Hi all folks! Its my first message to the mailing list, so excuse me if Im posting on wrong place. I have worked with Apache since 4 years ago, almost always with version 2.X. So I have a little experience with this great web Server. Lately, Im introducing NAS tecnologies with free

[us...@httpd] .htaccess

2009-09-07 Thread Jos Chrispijn
Is there a way of forcing webbrowser to present a login popup every time they enter a protected URL? Now I login once and until I delete my cookies, I can go to the URL without having a username and password filled out, even not having the 'remember password' option active. Have search for

[us...@httpd] Question about CSR and load balancing to Apache servers.

2009-09-07 Thread Ali Jawad
Hi I got the following network setup |---Server A Internet --load balancer---Server B |---Server C The load balancer will send the requests in round robin fashion, and the traffic will be secured using HTTPS. All servers will host one site using

RE: [us...@httpd] Crazy with VirtualHost and warnings!!!

2009-09-07 Thread RicardoCh
Well, first, I mean that now the apache2 is configured exactly like describes this Debian page: http://www.debian-administration.org/articles/412 Second, this is the output asked by Francois: Linux:~# apache2ctl -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:*

Re: [us...@httpd] Crazy with VirtualHost and warnings!!!

2009-09-07 Thread Frank Gingras
From that output, I can see that you're using an old release. The debian package has since been fixed to use *:80 instead of *. In any case, please read: http://wiki.apache.org/httpd/CouldNotBindToAddress To resolve your second issue. Frank. RicardoCh wrote: Well, first, I mean that now

Re: [us...@httpd] Question about CSR and load balancing to Apache servers.

2009-09-07 Thread Krist van Besien
On Mon, Sep 7, 2009 at 9:41 PM, Ali Jawadalijaw...@gmail.com wrote: Hi I got the following network setup                         |---Server A Internet --load balancer---Server B                         |---Server C The load balancer will send the requests in round robin fashion, and the