[Techtalk] Zeus rewrite rules

Kathryn Andersen kat_lists at katspace.com
Tue Dec 28 12:04:14 EST 2004

Anyone here familiar with Zeus rewrite rules?
Because my web-host uses Zeus rather than Apache, I need to convert some
Apache rewrite rules to Zeus format, so that I can run a particular CGI
script (which I've tested on my own PC with Apache) on my actual
web-host in the same way.

These are the original Apache rules:

# Apache rewrite
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ posy.cgi/$1 [L,QSA]

The idea is to call the posy.cgi script with the PATH_INFO set to the
requested URL, if and only if the file or directory is not found.

This is what I came up with for the Zeus rewrite rules, but they aren't
working.  Instead of it calling the CGI script, it just comes up with
the standard 404 Not Found page.

# Zeus rewrite
# look for the file and call posy.cgi if it doesn't exist
match path into SCRATCH:path from %{URL}
look for file at %{SCRATCH:path}
if not exists then
	match URL into $ with ^(.*)$
	if matched then
   		set URL = posy.cgi/$1

I then tried to see if I could override all URLs by just using

match URL into $ with ^(.*)$
if matched then
   	set URL = posy.cgi/$1

but that didn't work either.

Can anybody tell me what I'm doing wrong?  Thanks.

Kathryn Andersen
Lennier: Ambassador Delenn remains indisposed.
Londo: Indisposed? She's in a cocoon.
Lennier: Yes.
        "Revelations" (Babylon 5)
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe

More information about the Techtalk mailing list