You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Cliff Woolley <jw...@virginia.edu> on 2003/03/19 20:17:32 UTC

mod_rewrite on Netware

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 <JK...@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



Re: mod_rewrite on Netware

Posted by Cliff Woolley <jw...@virginia.edu>.
On Wed, 19 Mar 2003, [ISO-8859-1] Andr Malo wrote:

> Can he try 2.1?

If someone either sends me a binary or tells me how to get my hands on a
compiler for Netware...  :)

--Cliff


Re: mod_rewrite on Netware

Posted by André Malo <nd...@perlig.de>.
* Cliff Woolley wrote:

> 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.

Can he try 2.1? The path handling patches applied some time ago (see status 
file, they are proposed for backport ... ;-) may help.

nd
-- 
s  s^saaaaaoaaaoaaaaooooaaoaaaomaaaa  a  alataa  aaoat  a  a
a maoaa a laoata  a  oia a o  a m a  o  alaoooat aaool aaoaa
matooololaaatoto  aaa o a  o ms;s;\s;s;g;y;s;:;s;y#mailto: #
 \51/\134\137| http://www.perlig.de #;print;# > nd@perlig.de