使用phpstudy創(chuàng)建網(wǎng)站,只有l(wèi)ocalhost可以訪問,
其他所有網(wǎng)站無法訪問,可能是你的賬戶沒有修改vhost的權限
找到 C:\Windows\System32\drivers\etc下的vhost文件,
1、右鍵屬性 將只讀去掉
2、把用戶對此文件的控制權限全部勾上
3、再重新創(chuàng)建網(wǎng)站,就可以訪問了
效果如下 :文章來源:http://www.zghlxwxcb.cn/news/detail-851805.html
vhost文件文章來源地址http://www.zghlxwxcb.cn/news/detail-851805.html
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
# 添加的新域名
127.0.0.1 abc.com
127.0.0.1 erp.com
到了這里,關于【PHP】phpstudy添加的網(wǎng)站,訪問出現(xiàn) 嗯… 無法訪問此頁面的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!