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 thought of using

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] wrote: Anyone's got

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

2005-12-06 Thread gregory duchesnes
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 with aliases as above RewriteCond %{REQUEST_URI

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

2005-12-06 Thread gregory duchesnes
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 request to this folder - else

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

2005-12-06 Thread gregory duchesnes
, 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: RewriteCond ${vhost:%1

[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

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

[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] can't get mod_expires to work with apache 2.0.54

2005-11-21 Thread gregory duchesnes
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 i expected

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

2005-11-21 Thread gregory duchesnes
-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_expires, but i want to invalidate cache as soon as the client gets

[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

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

2005-11-02 Thread gregory duchesnes
/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 ^Mozilla badbrowser=1 SetEnvIf badbrowser

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 only Mozilla from