Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“Apache错误”;此处不允许别名匹配”;_Apache_.htaccess_Runtime Error - Fatal编程技术网

“Apache错误”;此处不允许别名匹配”;

“Apache错误”;此处不允许别名匹配”;,apache,.htaccess,runtime-error,Apache,.htaccess,Runtime Error,如果在.htaccess文件中添加此行,则会出现此错误: AliasMatch ^/image/(.*)$ /ftp/pub/image/$1 及 产生相同类型的错误 为什么(错误说明一切 中不允许使用别名匹配和别名 您需要将它们放在Apache配置中 Alias /image/ /ftp/pub/image/

如果在.htaccess文件中添加此行,则会出现此错误:

AliasMatch ^/image/(.*)$ /ftp/pub/image/$1

产生相同类型的错误

为什么(

错误说明一切

中不允许使用
别名匹配
别名

您需要将它们放在Apache配置中

Alias /image/ /ftp/pub/image/