httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L. Harris" <>
Subject Rewriting a URL
Date Fri, 11 Jan 2002 16:45:16 GMT

Still digging into this.  My httpd.conf has this:

    Redirect /site
    RewriteEngine  on
    RewriteLog logs/site1.rewrite
    RewriteLogLevel 9
    RewriteRule ^.*gonzo.**)$1 [L,R]

The theory would be to rewrite any outbound instance of "gonzo1" to "site1"
for the hostname.  I found the logging directive and see this in my logs:

[rharris@sslproxy01 httpd]$ tail -20f site1.rewrite - - [11/Jan/2002:16:42:00 -0700] [][rid#80ccfe0/initial]
(2) init rewrite engine with requested uri /site - - [11/Jan/2002:16:42:00 -0700] [][rid#80ccfe0/initial]
(3) applying pattern '^.*gonzo.**)' to uri '/site' - - [11/Jan/2002:16:42:00 -0700] [][rid#80ccfe0/initial]
(1) pass through /site

The first problem is that the url it's reading doesn't seem to have the
hostname.  Ummm, that's not a good thing.

Robert L. Harris                |  Micros~1 :  
Senior System Engineer          |    For when quality, reliability 
  at RnD Consulting             |      and security just aren't
                                \_       that important!
      These are MY OPINIONS ALONE.  I speak for no-one else.
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message