httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <>
Subject Alias and ScriptAlias suggestion (fwd) ??? (fwd)
Date Tue, 28 May 1996 21:15:29 GMT

I think Cliff or Chuck forwarded this earlier. If so the submitter
obviously thinks that got ignored (true).

Just in case I'm mistaken, I send this again. I'll send an ack.

From: (John W. Kulp)
Message-Id: <>
Subject: Alias and ScriptAlias  suggestion (fwd) ???
Date: Tue, 28 May 1996 17:00:44 -0400 (EDT)
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1265      

 I was hacking around srm.conf to get Alias and ScriptAlias more flexible
 ... (I'm supporting a couple of projects that use 1.1b2 httpd and I don't
 want to keep multi copies of srm.conf ) and notice that it wouldn't take
 relative paths to DocumentRoot, 

I then could set DocumentRoot to whatever and do this in srm.conf: 
 Alias /icons/                           db/httpd/icons/
 Alias /NWP/                             db/pubs/NWP/
 Alias /about/                           cdkdb/export/about/
 Alias /help/                            cdkdb/export/help/
 Alias /access/                          db/httpd/access/
 etc .... there is a bunch ...
 so, in mod_alias.c ... add_alias() ...
 /* XX r can NOT be relative to DocumentRoot here... compat bug. */
 so ... I changed
     new->real = r;
 and replaced it with this ...
     new->real = is_directory (r) ? r :
 it was quick and it does the trick ... but ... a couple of questions 
 should i persue this ?? 
 if so ... shouldn't the call be document_root_relative() ??? 
 should I write document_root_relative() ???
 should I use char *document_root (request_rec *); instead ??
----- End of forwarded message from John W. Kulp -----

Rob Hartill (
The Internet Movie Database (IMDb)
           ...more movie info than you can poke a stick at.

View raw message