httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: mod_rewrite prevents caching of browsers
Date Tue, 06 Aug 2002 08:47:28 GMT
Hi,

this would be an example:

---------------------------------------------------------
<VirtualHost *:80>
      <Directory "/usr/www/user1/bpost.com/cgi">
         Options ExecCGI
      </Directory>
      <Directory "/usr/www/user1/bpost.com/sub/cgi">
         Options ExecCGI
      </Directory>
      ServerName bpost.com
      ServerAlias *.bpost.com
      ServerAdmin admin@bpost.com
      User user1
      Group user1
      RewriteEngine on
      RewriteMap lowercase int:tolower
      RewriteCond %{REQUEST_URI} !^/cgi-bin/
      RewriteCond %{REQUEST_URI} !^/icons
      RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.)?bpost\.com$
      RewriteRule ^(.+)$ /usr/www/user1/bpost.com/www$1
      RewriteCond %{REQUEST_URI} !^/cgi-bin/
      RewriteCond %{REQUEST_URI} !^/icons
      RewriteCond ${lowercase:%{HTTP_HOST}} !^(www\.)?bpost\.com$
      RewriteCond ${lowercase:%{HTTP_HOST}} (.+)\.bpost\.com$
      RewriteRule ^(.+)$ /usr/www/user1/bpost.com/sub/www/%1/$1
      RewriteCond %{REQUEST_URI} ^/cgi-bin/(.*)$
      RewriteCond %{REQUEST_URI} !^/icons
      RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.)?babypost\.com$
      RewriteRule ^/cgi-bin/(.*)$ /usr/www/user1/bpost.com/cgi/$1 [T=application/x-httpd-cgi]
      RewriteCond %{REQUEST_URI} ^/cgi-bin/(.*)$
      RewriteCond %{REQUEST_URI} !^/icons
      RewriteCond ${lowercase:%{HTTP_HOST}} !^(www\.)?bpost\.com$
      RewriteCond ${lowercase:%{HTTP_HOST}} (.+)\.bpost\.com$
      RewriteRule ^/cgi-bin/(.*)$ /usr/www/user1/bpost.com/sub/cgi/%1/$1 [T=application/x-httpd-cgi]
</VirtualHost>
---------------------------------------------------------------

Thanks
Jurgen


On Tue, 6 Aug 2002 10:29:47 +0200
"Boyle Owen" <Owen.Boyle@swx.com> wrote:

> >From: Jurgen [mailto:apache@squarehosting.com]
> >
> >Hi,
> >
> >thanks for your answer.
> >I am actually not redirecting anything, I am using mod_rewrite 
> >to map URLs to the file system.
> 
> Can you post an example of one of your rules?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message