VirtualHost 配置

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "E:\xampp\htdocs"
    ServerName 127.0.0.1
    ErrorLog E:\xampp\htdocs\error_log
    CustomLog E:\xampp\htdocs\access_log common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "E:\xampp\htdocs"
    ServerName localhost
    ErrorLog E:\xampp\htdocs\error_log
    CustomLog E:\xampp\htdocs\access_log common
</VirtualHost>


<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "E:/www/Magento/magento"
    ServerName local.magento.com
    ErrorLog E:\www\Magento\magento\local.magento.com-error_log
    CustomLog E:\www\Magento\magento\local.magento.com-access_log common
</VirtualHost>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "E:/www">
    #
    # 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.2/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:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

你可能感兴趣的:(apache,html,qq,Access)