您的位置:首页 > 其它

apche2.24版本

mymvp 2020-09-03 17:48 113 查看 https://blog.51cto.com/1343465

创建虚拟主机
访问报错:500
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.15 (CentOS) Server at 192.168.179.137 Port 8888

日志报错:
[Thu Sep 03 17:45:48 2020] [crit] [client 192.168.179.1] configuration error: couldn't perform authentication. AuthType not set!: /

需要配置:satisfy any
[root@jack6-2 vhost]# cat vhost.conf

BEGIN ANSIBLE MANAGED BLOCK

<VirtualHost *:8888>
DocumentRoot /data/www/html
ServerName myvhost.com
<Directory /data/www/html>
AllowOverride None
Require all granted
Satisfy Any
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

END ANSIBLE MANAGED BLOCK

标签: