httpd-users mailing list archives

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

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

    Redirect /site http://gonzo1.company.com
    RewriteEngine  on
    RewriteLog logs/site1.rewrite
    RewriteLogLevel 9
    RewriteRule ^.*gonzo.*company.com/(.*)         http://site1.company.com/$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 
10.10.117.230 - - [11/Jan/2002:16:42:00 -0700] [site1.company.com.com/sid#80b7788][rid#80ccfe0/initial]
(2) init rewrite engine with requested uri /site
10.10.117.230 - - [11/Jan/2002:16:42:00 -0700] [site1.company.com.com/sid#80b7788][rid#80ccfe0/initial]
(3) applying pattern '^.*gonzo.*company.com/(.*)' to uri '/site'
10.10.117.230 - - [11/Jan/2002:16:42:00 -0700] [site1.company.com.com/sid#80b7788][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.


:wq!
---------------------------------------------------------------------------
Robert L. Harris                |  Micros~1 :  
Senior System Engineer          |    For when quality, reliability 
  at RnD Consulting             |      and security just aren't
                                \_       that important!
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message