Name

AliasMatch

Synopsis

AliasMatch regex real_path

Description

[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

(Apache 1.3 or later)

Get Webmaster in a Nutshell, Second 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.