程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> 解決wampserver3.0.4遠程不能訪問問題,wampserver遠程訪問

解決wampserver3.0.4遠程不能訪問問題,wampserver遠程訪問

編輯:關於PHP編程

解決wampserver3.0.4遠程不能訪問問題,wampserver遠程訪問


在windows2008服務器上安裝wampserver3.0.4集成環境,默認卻是無法遠程訪問,如果要遠程訪問需要修改apache的配置文件httpd.conf,修改如下:

<Directory "D:/wamp64/www/">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options -Indexs  +FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
Require all granted
#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Require local
</Directory>

說明:

Options -Indexs  +FollowSymLinks  把'+Indexs'修改為'-Indexs'代表不允許訪問文件目錄;

Require all granted  此行是後來加上的,加上後就可以遠程訪問。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved