新闻建站cms系统、政府cms系统定制开发

广州网站建设公司-阅速公司

asp.net新闻发布系统、报纸数字报系统方案
/
http://www.ysneo.com/
广州网站建设公司
您当前位置:首页>系统知识

系统知识

welcome.conf设置说明及LocationMatch用法

发布时间:2019/10/30 9:55:27  作者:Admin  阅读:463  

广告:阿里云采购优惠专区

#

# This configuration file enables the default "Welcome" page if there

# is no default index page present for the root URL. To disable the

# Welcome page, comment out all the lines below.

#

# NOTE: if this file is removed, it will be restored on upgrades.

#options中Indexes表示当网页不存在的时候允许索引显示目录中的文件

#AllowOverride None表示不允许这个目录下的访问控制文件来改变这里的配置,这也意味着不用查看这个目录下的访问控制文件,修改为:AllowOverride All 表示允许.htaccess。

#Require all granted 允许所有访问请求

#Order对页面的访问控制顺序后面的一项是默认#选项,如allow,deny则默认是deny,Allowfromall表示允许所有的用户,通过和上一项结合可以控制对网站的访问控制

<LocationMatch "^/+$">

Options -Indexes

Require all granted

</LocationMatch>

#ErrorDocument 403 /.noindex.html

<Directory /usr/share/httpd/noindex>

AllowOverride None

Require all granted

</Directory>

Alias /.noindex.html /usr/share/httpd/noindex/index.html

Alias /noindex/css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css

Alias /noindex/css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css

Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif

Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png

广告:阿里云新人采购专场

相关文章
welcome.conf
cms新闻系统购买咨询
扫描关注 广州阅速软件科技有限公司
扫描关注 广州阅速科技