Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
o maintain. Thanks again Greg Joshua Slive a écrit : On 12/6/05, gregory duchesnes <[EMAIL PROTECTED]> wrote: Beware, mail crossing ;) I'm beginning to understand your logic, though i don't see why it should be faster since you do a lookup in vhost.map for each request. In

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
are cached, the best performance might be achieved with 2 maps, one for the master domain and one for the aliases with something, no system access in this case, am i right? Greg Joshua Slive a écrit : On 12/6/05, gregory duchesnes <[EMAIL PROTECTED]> wrote: Rewrit

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
pty key and value?!? Greg gregory duchesnes a écrit : oups, i don't understand you logic either ;) ok i'll try to make things clearer What i'm trying to do is this : - check if the folder /var/www/hosts/${lowercase:%{SERVER_NAME}}/web exists - if yes rewrite the requ

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
and that i won't have any grabage characters again Greg Joshua Slive a écrit : On 12/6/05, gregory duchesnes <[EMAIL PROTECTED]> wrote: Anyone's got an idea, i'm still stuck on this one... # define the map file RewriteMap vhost txt:/www/conf/vhost.map # deal w

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
I turn RewriteLog 9 but it is such a nightmare, i don't see what's wrong... by the way i cleaned the garbage characters when i did my reply so there's nothing to decipher, might help, no? Greg Joshua Slive a écrit : On 12/6/05, gregory duchesnes <[EMAIL PROTECTED]>

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-06 Thread gregory duchesnes
Anyone's got an idea, i'm still stuck on this one... gregory duchesnes a écrit : Hi all, i'm trying to set up some kind of ISP style virtual hosting, the problem is some domains have a lot of aliases (which i need to redirect to the master domain with à code 301). I t

Re: [EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-05 Thread gregory duchesnes
Please ignore the pipes "|" that were automatically inserted in my code, i don't know where it comes from... gregory duchesnes a écrit : Hi all, i'm trying to set up some kind of ISP style virtual hosting, the problem is some domains have a lot of aliases (which i need

[EMAIL PROTECTED] mod_rewrite mass virtual hosting and aliases

2005-12-05 Thread gregory duchesnes
Hi all, i'm trying to set up some kind of ISP style virtual hosting, the problem is some domains have a lot of aliases (which i need to redirect to the master domain with à code 301). I thought of using mod_vhost_alias this way: - create a folder for the master domain - create a symlink to th

Re: [EMAIL PROTECTED] can't get mod_expires to work with apache 2.0.54

2005-11-21 Thread gregory duchesnes
ntrol "no-store, no-cache, must-revalidate" Header set Pragma "no-cache" Nick Kew a écrit : On Monday 21 November 2005 11:36, gregory duchesnes wrote: Therefore i didn't understand what mod_expires does!? That mechanism i correct in case i don't use mod_expire

Re: [EMAIL PROTECTED] can't get mod_expires to work with apache 2.0.54

2005-11-21 Thread gregory duchesnes
Monday 21 November 2005 11:20, gregory duchesnes wrote: But it does not change anything, my browser (Firefox 1.0.7) first get the file normally from the server, but if i close the browser and try and grab the file again, i get a HTTP 304 not modified code instead of the HTTP 200 code

[EMAIL PROTECTED] can't get mod_expires to work with apache 2.0.54

2005-11-21 Thread gregory duchesnes
I all, i'm trying to make mod_expires work on my server (Debian stable). First i tried to make it work serverwide (just for testing) I then added those two lines in my main conf file : ExpiresActive On ExpiresDefault "now plus 1 seconds" # i also tried this ExpiresDefault A1 But it does not

Re: [EMAIL PROTECTED] SetEnvIf only if 2 regex match?

2005-11-02 Thread gregory duchesnes
that's exactly it, thanks a lot Joshua Joshua Slive a écrit : On 11/2/05, gregory duchesnes <[EMAIL PROTECTED]> wrote: thanks for your help but this is the exact opposite of what i wan't to do. Here you accept anyone from 192.168.0.2 except Mozilla. I wan't to allow o

Re: [EMAIL PROTECTED] SetEnvIf only if 2 regex match?

2005-11-02 Thread gregory duchesnes
On 11/2/05, gregory duchesnes <[EMAIL PROTECTED]> wrote: SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome BrowserMatch !"^Mozilla" !welcome You can't negate a regex in that way. Try this instead: SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome SetEnvIf User-Agent &

[EMAIL PROTECTED] SetEnvIf only if 2 regex match?

2005-11-02 Thread gregory duchesnes
Hi all, for testing purpose i would need ti allow access to a server only if the client confroms to 2 tests. I RTFMed, but can't find a solution. let's say i want to allow my client only if it comes from a specific IP and with a specific browser. I've tried this (and many variants) without