Name

AliasMatch

Synopsis

                     AliasMatch 
                     regex 
                     real_path
                  

[server config, within <VirtualHost>]

Similar to Alias but uses regular expressions. This option creates a virtual name or directory by mapping a symbolic pathname that matches the standard regular expression, regex, to a real path on the server. For example:

AliasMatch ^/images(.*) /etc/httpd/server/images$1

Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.