Re: [EMAIL PROTECTED] Question: RewriteMap and context

2008-04-07 Thread lihao0129
On Mon, Apr 7, 2008 at 10:54 AM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Mon, Apr 7, 2008 at 10:51 AM, <[EMAIL PROTECTED]> wrote: > > > Outside the VirtualHost container in my httpd.conf, I have tried: > > > > RewriteOptions inherit > > RewriteRule command rules.. > > You use Rewri

Re: [EMAIL PROTECTED] Question: ProxyPass not working??

2008-04-07 Thread lihao0129
On Mon, Apr 7, 2008 at 10:47 AM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Mon, Apr 7, 2008 at 10:36 AM, <[EMAIL PROTECTED]> wrote: > > Hi, Eric: > > > > Thank you very much for your response. I've set > > > > RewriteLogLevel 4 > > RewriteLog "/var/log/www/rewrite.log" > > > > and fou

Re: [EMAIL PROTECTED] Question: RewriteMap and context

2008-04-07 Thread lihao0129
On Sun, Apr 6, 2008 at 12:17 PM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Sat, Apr 5, 2008 at 9:09 PM, <[EMAIL PROTECTED]> wrote: > > From the Apache mod_rewrite documentation, the RewriteMap should be > > working under both server config and virtual host. I have the > > following RewriteMap

Re: [EMAIL PROTECTED] Question: ProxyPass not working??

2008-04-07 Thread lihao0129
Hi, Eric: Thank you very much for your response. I've set RewriteLogLevel 4 RewriteLog "/var/log/www/rewrite.log" and found that Apache did not check ProxyPass rules at all. If I added: RewriteRule ^/pics/(.*\.jpg)$http://192.168.53.93/pics/$1 [P,L] This worked as expected, b

[EMAIL PROTECTED] Question: RewriteMap and context

2008-04-05 Thread lihao0129
>From the Apache mod_rewrite documentation, the RewriteMap should be working under both server config and virtual host. I have the following RewriteMap rules: RewriteMap images txt:/path/to/img.map RewriteRule ^/images/([0-9][0-9][0-9])(.*)$ /multimedias/${images:$1}/$2 [L,PT] which I n

[EMAIL PROTECTED] Question: ProxyPass not working??

2008-04-05 Thread lihao0129
Hi, folks: On my websites, I want links like the following: http://example.com/images/pic.jpg silently grab the image from http://192.168.53.93/images/pic.jpg [internal IP] or http://imgserver.com/images/pic.jpg [external IP] example2.com(192.168.53.93) is a separate(physica

[EMAIL PROTECTED] Add Enviroment paramenters with RewriteRule ?????

2007-12-22 Thread lihao0129
Hi, folks: I have a problem with setting enviroment paramenters with RewriteRule.. For example, in my document_root/.htaccess, I had: RewriteEngine on RewriteBase / RewriteRule ^([^/]+)/ - [E=Location:$1] RewriteRule ^dir/(.*)$ guestbook/dir.html?q=$1 [QSA,L,PT] By line3, I want to add an