apache 第二个别名不起作用
apache second alias does'nt work
我在 apache 上有这样一个别名:Alias “/images” “/home/user1/data” 现在我想要第二个像这样的别名: Alias “/images/charts” “/home/user1/meta/output”
但它不起作用。我该怎么做?
(...) the Aliases and Redirects are processed in the order they appear in
the configuration files, with the first match taking precedence.
For this reason, when two or more of these directives apply to the
same sub-path, you must list the most specific path first in order for
all the directives to have an effect. For example, the following
configuration will work as expected:
Alias "/foo/bar" "/baz"
Alias "/foo" "/gaq"
我在 apache 上有这样一个别名:Alias “/images” “/home/user1/data” 现在我想要第二个像这样的别名: Alias “/images/charts” “/home/user1/meta/output”
但它不起作用。我该怎么做?
(...) the Aliases and Redirects are processed in the order they appear in the configuration files, with the first match taking precedence.
For this reason, when two or more of these directives apply to the same sub-path, you must list the most specific path first in order for all the directives to have an effect. For example, the following configuration will work as expected:
Alias "/foo/bar" "/baz" Alias "/foo" "/gaq"