apache配置

常用軟體,程式語言的筆記和疑問
Forum rules
盡量做到:
每一個貼子都精心編輯;
每一個疑問都得到解答。
Post Reply
ejsoon
Site Admin
Posts: 3533
Joined: 2016 Jan 10, 22:15

apache配置

Post by ejsoon » 2017 Mar 02, 11:23

http://blog.csdn.net/wuweitiandian/arti ... s/42918675

Code: Select all

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


    #
    # 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
    Require all granted   
    
    # Controls who can get stuff from this server.
    #


#   onlineoffline tag - don't remove
   Require local
</Directory>
只加了一句Require all granted

ejsoon
Site Admin
Posts: 3533
Joined: 2016 Jan 10, 22:15

Re: apache配置

Post by ejsoon » 2018 Apr 20, 10:39

https://blog.csdn.net/gaolicsdn/article ... s/53571872
如果是新增端口的話:
打开httpd.conf文件,添加如下代码,表示让apache监听我们上面的端口:
Listen 12345

Post Reply