apache配置文件

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>

posted on 2014-12-14 15:56  andydaopeng  阅读(244)  评论(0编辑  收藏  举报

导航