自己安装httpd-2.4.29,在配置虚拟目录时(我是拿http2.2版本的配置文件alias项目直接复制过来),报错如下错误:此网站要求您登录
这是因为apache2.4的版本和2.2版本虚拟目录参数不同;
需要把http.conf中的Alias参数改成:
以下是代码:已经验证过:
Alias /gaofeng "/var/www/gaofeng/" <Directory "/var/www/gaofeng"> Options Indexes FollowSymlinks AllowOverride All Require all granted </Directory>
转载于:https://blog.51cto.com/889032/2043585