apache部署後容許外網訪問

載體:騰訊雲windows服務器php

操做:部署禪道系統apache

Apache版本:2.4.25windows

結果:本地能夠訪問,外網沒法訪問服務器

緣由:1.Apache的配置文件 apache\conf\httpd.conf配置問題 2.公網防火牆未開啓80端口app

 

 解決方案:ide

 1.配置更改ui

<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入站出站規則spa

最後,外網成功運行!code

相關文章
相關標籤/搜索