码迷,mamicode.com
首页 > Web开发 > 详细

apache配置文件

时间:2014-12-14 17:09:42      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   ar   os   sp   for   on   文件   

httpd-vhost.conf文件中:

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "D:\workspace\OradtWeb1.0_bug\Public"
    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>

apache配置文件

标签:des   http   io   ar   os   sp   for   on   文件   

原文地址:http://www.cnblogs.com/andydao/p/4162645.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!