httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject mod_rewrite on Netware
Date Wed, 19 Mar 2003 19:17:32 GMT

Anybody happen to know if mod_rewrite is actually known to work on Netware
right now?  One of my former colleagues is playing with it (on 2.0.44) and
having some problems that smell of a file path canonicalization bug to me.
See below.

Thanks...
Cliff

---------- Forwarded message ----------
Date: Wed, 19 Mar 2003 09:21:29 -0500
From: Jeff Knudson <JKnudson@wlu.edu>
To: jwoolley@virginia.edu
Subject: mod_rewrite

I'm playing with mod_rewrite on Apache2 for NetWare and wanted to bounce
a problem off of you.

Given the config:

<VirtualHost 137.113.100.171>
   ServerName AcadFsVhosts.wlu.edu
   DocumentRoot "HOME:/"
   <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteLog logs/rewrite.log
      RewriteLogLevel 9
      RewriteRule ^(.+)                   %{HTTP_HOST}$1	[C]
      RewriteRule ^(.+)\.wlu\.edu\/*(.*)	$1/public_html/$2
   </IfModule>
</VirtualHost>


and the input "http://biology2.wlu.edu/index.html", do I get the URL
"biology2/public_html/index.html" without the DocumentRoot?


137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (2) init rewrite
engine with requested uri /index.html
137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (3) applying
pattern '^(.+)' to uri '/index.html'
137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (2) rewrite
/index.html -> biology2.wlu.edu/index.html
137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (3) applying
pattern '^(.+)\.wlu\.edu\/*(.*)' to uri 'biology2.wlu.edu/index.html'
137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (2) rewrite
biology2.wlu.edu/index.html -> biology2/public_html/index.html
137.113.76.8 - - [19/Mar/2003:09:18:33 --0500]
[biology2.wlu.edu/sid#c99f05d8][rid#cc30d910/initial] (2) local path
result: biology2/public_html/index.html





If I change the last RewriteRule to:

      RewriteRule ^(.+)\.wlu\.edu\/*(.*)	HOME:/$1/public_html/$2

I get the URL "HOME:HOME:/biology2/public_html/index.html" with a Doc
Root????

Can you enlighten?
JK


137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (2) init rewrite
engine with requested uri /index.html
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (3) applying
pattern '^(.+)' to uri '/index.html'
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (2) rewrite
/index.html -> biology2.wlu.edu/index.html
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (3) applying
pattern '^(.+)\.wlu\.edu\/*(.*)' to uri 'biology2.wlu.edu/index.html'
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (2) rewrite
biology2.wlu.edu/index.html -> HOME:/biology2/public_html/index.html
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (2) local path
result: HOME:/biology2/public_html/index.html
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (2) prefixed with
document_root to HOME:HOME:/biology2/public_html/index.html
137.113.76.8 - - [19/Mar/2003:09:22:01 --0500]
[biology2.wlu.edu/sid#c99efd98][rid#cc30d090/initial] (1) go-ahead with
HOME:HOME:/biology2/public_html/index.html [OK]


  Jeff Knudson                   System Administrator
  University Computing           Email: jknudson@wlu.edu
  Washington & Lee University    Phone: 540-458-8108
  Lexington, VA 24450            Fax: 540-458-8479



Mime
View raw message