`
yeshaoting
  • 浏览: 686292 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

You don't have permission to access / on this server.

    博客分类:
  • PHP
 
阅读更多

 

错误:You don't have permission to access / on this server.

 

当修改Apache HTTP Server服务器DocumentRoot值时,

 

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/MyEclipse/htdocs"

 

 

还需要修改其不远处的Directory:

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/MyEclipse/htdocs">
    #
    # 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.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews ExecCGI

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

 

 

分享到:
评论

相关推荐

    Apache You don't have permission to access / on this server

    "Apache You don't have permission to access / on this server" 是一个经典的Apache服务器错误信息,它意味着用户尝试访问网站时遇到了权限问题。这个错误通常出现在Apache HTTP服务器的配置不当或者目录权限设置...

    WampServer设置apache伪静态出现404 not found及You don’t have permission to access / on this server解决方法分析 原创

    本文实例讲述了WampServer设置apache伪静态出现404 not found及You don’t have permission to access / on this server解决方法。分享给大家供大家参考。具体如下: 出现404 not found 时: 确保LoadModule rewrite_...

    apache You don’t have permission to access /test.php on this server解决方法

    键字: Apache 403 Forbidden 系统配置: 操作系统:Red Hat Linux 6.2 Web服务器:Apache 3.1.1+jakarta-tomcat 3.1.1 数据库服务器:oracle 8i Apache服务器是目前应用... You don’t have permission to access 

    apache You don't have permission to access /test.php on this server解决方法

    Apache服务器在运行过程中可能会遇到各种错误,其中"403 Forbidden"是一个常见的错误,提示用户没有权限访问指定的资源。这个错误通常出现在尝试访问某个网页或文件时,服务器返回的状态码为403,表示服务器理解了...

    phpstudy2018 访问目录服务权限问题

    You don’t have permission to access /repertory/on this server. 意思是:您没有访问此服务器上的权限。 我就纳闷了,检查了好久最后查看配置文件vhosts.conf文件 发现2018版配置变了 只能乖乖的按照默认格式...

    WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析 &lt;fo

    主要介绍了WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法,较为详细的分析了几种常见情况,非常具有实用价值,需要的朋友可以参考下

    WampServer 64位 php5.3.10 mysql5.5.20

    本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server.的提示,如何解决? 解决方法:...

    apache安装

    You don't have permission to access / on this server. 更改D:\Installsoftware\apache\apache\httpd-2.2-x64\conf文件夹中的httpd.conf文件中 &lt;Directory /&gt; Options FollowSymLinks AllowOverride None ...

    Wampserver2.5配置虚拟主机出现403 Forbidden的处理方案

    一直在用APMServ5.2.6,mysql好办,可以用mariadb代替进行升级,但php...You don't have permission to access / on this server. Apache/2.4.9 (Win32) PHP/5.5.12 Server at www.sitename.com Port 80 一、在国内网

    PHP Redis扩展无法加载的问题解决方法

    ./configure [--enable-redis-igbinary] make && make install 但是在重启php-fpm的过程中,发生了如下的错误,redis.so无法载入 [root@brand009 modules]# /usr/sbin/php-fpm /usr/sbin/...

    Ubuntu Apahce2.4下无法访问JS目录的问题解决

    今天调试一个项目,项目放在webroot下面的javascript目录,无论怎么设置都是403 You don’t have permission to access /javascript/ on this server. 思考过程 首先第一反应,Google了错误You don't have ...

    精心整理的ssh2 一些错误问题的记录(推荐)

    ### 错误十:You don't have permission to access /on this server. 这是服务器权限问题,表示当前用户没有足够的权限访问特定资源。对于Apache服务器,检查配置文件(如httpd.conf)和日志文件(如error.log),...

    网站屏蔽国内IP访问

    echo 'You don\'t have permission to access / on this server.'; echo '&lt;P&gt;'; echo 'Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.'; ...

    ICS delphixe10源码版

    option to restore this directory tree or you will have problems because the files would not be in their proper subdirectories. Please note most of these directories are differently named to ICS V7 ...

    cuteEditor6.0

    set the controls width, disable image uploading and deleting, restrict access to the source/preview tabs, hide buttons and lists that you don't want your clients to see or access. &lt;br/&gt; &lt;br/&gt; 支持...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00341724 Defect FW allows a firmware to be flashed through Online FW Update method in DOS and then breaks into montask SCGCQ00342848 Defect Add Adapter restart support in CLI SCGCQ00342993 Defect...

    DebuggingWithGDB 6.8-2008

    4.11 Setting a Bookmark to Return to Later . . . . . . . . . . . . . . . . . . . . . 4.11.1 A Non-obvious Benefit of Using Checkpoints . . . . . . . . . . . . 5 25 26 28 28 29 29 30 31 31 34 36 37 ...

    FNDCPASS Troubleshooting Guide For Login and Changing Applicatio

    2. **Log In Fails With: You Don't Have Permission To Access /pls/.../fnd_icx_launch.launch On This Server**:登录失败可能是由于权限配置错误。确保用户具有访问所需Web资源的适当权限,并检查Web服务器的...

    Windows Apache2.2.11及Php5.2.9-1的安装与配置方法

    - 在配置过程中,如果遇到权限问题,比如出现“You don't have permission to access / on this server”这样的错误提示,应该检查httpd.conf中的段落设置,确保服务器具有读取和访问指定目录的权限。 以上步骤完成...

Global site tag (gtag.js) - Google Analytics