zoukankan      html  css  js  c++  java
  • apache配置文件

    httpd-vhost.conf文件中:

    <VirtualHost *:80>
        ServerAdmin webmaster@dummy-host2.example.com
        DocumentRoot "D:workspaceOradtWeb1.0_bugPublic"
        ServerName work10bug.com
        ErrorLog "logs/my.work10bug.com-error.log"
        CustomLog "logs/my.work10bug.com-access.log" common
        <Directory />
            Options FollowSymLinks
        AllowOverride All
            Order allow,deny
            IndexOptions Charset=UTF-8
            Allow from all
      </Directory>
    </VirtualHost>

    httpd.conf文件中:

    ServerName localhost:80

    #
    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other
    # <Directory> blocks below.
    #
    <Directory />
        Options All
        AllowOverride all
    </Directory>

    ------------------

    DocumentRoot "D:/xampp/htdocs"
    <Directory "D:/xampp/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.4/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks Includes ExecCGI

        #
        # 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

        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    </Directory>

    -----------------------

    #
    # "D:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "D:/xampp/cgi-bin">
        AllowOverride All
        Options FollowSymLinks
        Require all granted
    </Directory>

  • 相关阅读:
    MVC OnActionExecuting,OnResultExecuted 的用法
    MindManager脑图之项目管理甘特图
    jQuery.Autocomplete实现自动完成功能(经典)
    常见26个jquery使用技巧详解(比如禁止右键点击、隐藏文本框文字等)
    用ATL创建COM组件详细解说
    STL中的常用的vector,map,set,Sort用法
    绘图效率完整解决方案——三种手段提高GDI/GDI+绘图效率
    C++面试
    iOS开发UI篇—iOS开发中三种简单的动画设置
    OS开发UI篇—IOS开发中Xcode的一些使用技巧
  • 原文地址:https://www.cnblogs.com/andydao/p/4162645.html
Copyright © 2011-2022 走看看