载体:腾讯云windows服务器
操作:部署禅道系统
Apache版本:2.4.25
结果:本地可以访问,外网无法访问
原因:1.Apache的配置文件 apache\conf\httpd.conf配置问题 2.公网防火墙未开启80端口
解决方案:
1.配置更改
<Directory /> AllowOverride none Require all granted </Directory> <Directory "C:/xampp/htdocs"> Options FollowSymLinks AllowOverride All Allow from all Require all granted <Files "index.php"> SetHandler application/x-httpd-php </Files> <Files "zentao.php"> SetHandler application/x-httpd-php </Files> <Files "zentaopro.php"> SetHandler application/x-httpd-php </Files> </Directory>
2.防火墙增加80入站出站规则
最后,外网成功运行!
原文:https://www.cnblogs.com/LessIsMoreZ/p/11783276.html