Win Server 2016下wamp外網或局域網報403

前幾天遷移了一套客戶系統,服務器是 windows server 2016,安裝了一個 wamp 做服務,部署後本地可訪問但是局域網或者外網內無法訪問,看了一堆put-online 或者修改 http.conf 的,操作後依舊報錯,隨後研究了一下,解決方案如下:

修改 wamp 安裝目錄下

bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf

# Virtual Hosts
#

<VirtualHost *:80>
    ServerName localhost
    ServerAlias localhost
    DocumentRoot D:/WWW
    <Directory  "D:/WWW/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
        # 在這加下面這個 !!!!
        Require all granted 
    </Directory>
</VirtualHost>
#

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章