zoukankan      html  css  js  c++  java
  • XAMPP项目目录自定义后403 Access Forbidden

    XAMPP安装过程不细述了,先来简单回顾一下XAMPP配置:

    xamppapacheconfextrahttpd-vhosts.conf

    <VirtualHost *:80>
        ServerAdmin postmaster@domain.td
        DocumentRoot "盘符:/路径/项目目录"
        ServerName domain.td      # domain.td 为自定义服务器名,只要你喜欢...随意
        ServerAlias www.domain.td   # www.domain.td 为项目localhost访问的域名别名,和上面对应
        ErrorLog "logs/domain.td-error.log"  # 生成日志文件,文件名随意
        CustomLog "logs/domain.td-access.log" combined  # 生成日志文件,文件名随意
    </VirtualHost>

    C:WindowsSystem32driversetchosts

    127.0.0.1       www.domain.td

    【系统环境】

      win7

    【问题】

       设置好项目访问的域名别名之后,打开浏览器访问  www.domain.td  发现 403 Access Forbidden

    【解决方法】

      经过一番google之后,锁定 xamppapacheconfhttpd.conf 文件,E字看着真心累啊

    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        # deny from all    # 原先的默认设置
        Allow from all    # 改成 Allow 问题解决
    </Directory>
  • 相关阅读:
    thrift python安装
    第二周习题F
    Equivalent Strings
    生成可重集的排列(方法)
    分数拆分(刘汝佳紫书P183)
    Prime ring problem
    Maximun product
    Division
    每周一赛(E题,广搜求方案)
    ICE CAVE(BFS搜索(模拟))
  • 原文地址:https://www.cnblogs.com/sirius-cg/p/4518034.html
Copyright © 2011-2022 走看看