1.Forbidden You don't have permission to access / on this server. 后来咨询了一下朋友(php高手),说修改一下php的配置文件httpd.conf. 在原有的位置文件中找到配置节 <Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    Deny from all    Satisfy all</Director…
问题解决:Apache: You don't have permission to access / on this server 转自:http://blog.csdn.net/crazyboy2005/article/details/4768928 虚拟主机(Virtual Host)是指在一个机器上运行多个网络站点 (比如:www.company1.com和www.company2.com). 如果每个网络站点拥有不同的IP地址,则虚拟主机可以是"基于IP"的: 如果只有一个IP…
当我们需要使用Apache配置虚拟主机时,有可能会出现这个问题:Apache: You don't have permission to access / on this server # 同IP不同域名 # Listen for virtual host requests on all IP addresses NameVirtualHost *: <VirtualHost *:> DocumentRoot "D:/lamp/phpweb/full" ServerName…
虚拟主机(Virtual Host)是指在一个机器上运行多个网络站点 (比如:www.company1.com和www.company2.com). 如果每个网络站点拥有不同的IP地址,则虚拟主机可以是"基于IP"的: 如果只有一个IP地址,也可以是"基于主机名"的, 其实现对最终用户是透明的.具体细节可以查看Apache官方说明 . 一. “基于主机名”虚拟主机的配置 Listen 81   NameVirtualHost *:81   <VirtualHo…
在mac下配置完apache和php环境后,通过localhost访问页面,出现403Forbidden.页面提示: Forbidden You don't have permission to access / on this server. 解决办法是修改/etc/apache/httpd.conf的配置 1.打开终端 2.cd /etc/apache2  --切换到apache目录 3.sudo vim httpd.conf  --需要输入电脑密码 如果apache版本是2.2的话,应该这…
环境:ubuntu16.4 apache2 原因:修改了apache web项目路径 解决: 1. 修改 /etc/apache2/sites-available/000-default.conf 文件 vim sites-available/-default.conf 原: <VirtualHost *:> DocumentRoot /var/www 修改后: <VirtualHost *:> DocumentRoot /var/web/shop 已解决.…
wampserver配置虚拟主机Forbidden,apache You don't have permission to access 找到httpd.conf文件(通常在安装apache的conf目录下),用编辑器打开 进入到 DocumentRoot Directory 这一行修改里面的内容 <Directory "${INSTALL_DIR}/www/"> 将Directory后面引号里面的修改成你的项目文件的根目录或者根目录所在的盘符,例如我配置的是D盘下的sit…
最近在安装最近版wampserver 2.2 d时发现安装好后启动服务器,访问localhost显示You don't have permission to access / on this server. 而在目录127.0.0.1下可以访问. 造成这个问题的原因是Apache 的http.conf内的默认配置是 #   onlineoffline tag - don't remove     Order Deny,Allow     Deny from all     Allow from…
本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server.的提示,如何解决? 找到httpd.conf,用记事本打开httpd.conf,然后将 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </D…
WampServer出现You don’t have permission to access/on this server提示 本地搭建WampServer,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server的提示,如何解决? 找到httpd.conf,用记事本打开httpd.conf,有两处需要修改: <Directory /> Opti…