httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Simplifying mod_alias
Date Sun, 26 Jan 2014 22:11:51 GMT
Hi all,

A look at mod_alias shows it has 7 directives:

• Alias
• AliasMatch
• Redirect
• RedirectMatch
• RedirectPermanent
• RedirectTemp
• ScriptAlias
• ScriptAliasMatch

In theory we only need these three:

• Alias
• Redirect
• ScriptAlias

What I'm keen to do is enable expression support and deprecate all but the above, with the
following as the preferred configuration method (same as the one used by ProxyPass):

<Location /foo>
  Alias /var/lib/bar
  …stuff...
</Location>

or

<LocationMatch ^/foo/(?<bar>[^/]+)>
  Alias /var/lib/%{env:MATCH_BAR}/baz
  …stuff...
</LocationMatch>

In theory this would be faster as we would not be scanning the list of Aliases followed by
the list of Locations each time, and things get a lot simpler to use.

Thoughts?

Regards,
Graham
--


Mime
View raw message