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>

  • 相关阅读:
    opstack 笔记 (一) 概念
    Redis学习汇总
    MongoDB添加删除节点
    Redis主从及Cluster区别及注意事项
    叶问18
    Redis慢日志取出来
    Redis的AOF重写脚本
    使用Python比较MySQL数据库中两个数据库的表结构--转载
    关于InnoDB存储引擎 text blob 大字段的存储和优化
    MongoDB进阶之路:不仅仅是技术研究,还有优化和最佳实践--转载
  • 原文地址:https://www.cnblogs.com/andydao/p/4162645.html
Copyright © 2011-2022 走看看