fedora如何开启apache并开启目录浏览模式
发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,这篇文章主要为大家展示了"fedora如何开启apache并开启目录浏览模式",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"fedora如何开启apache
千家信息网最后更新 2026年11月01日fedora如何开启apache并开启目录浏览模式
这篇文章主要为大家展示了"fedora如何开启apache并开启目录浏览模式",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"fedora如何开启apache并开启目录浏览模式"这篇文章吧。
在内网中 暂时需要一台 文件 服务器,所以准备安装一台 http服务器并开启目录访问权限。这次使用 apache 在 fedora 28 机器上:
因为 fedora 28 已经包含 httpd 软件,使用systemctl start httpd 就能进行启动。
启动时 默认开启 目录访问权限,但是首次访问网站根目录的时候,会显示test page.
进入如下文件夹:
[root@dhcp-65-15 conf.d]# pwd/etc/httpd/conf.d
[root@dhcp-65-15 conf.d]# cat welcome.conf## 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 ErrorDocument 403 /.noindex.html AllowOverride None Require all granted
进行注释上述文件:
[root@dhcp-65-15 conf.d]# cat welcome.conf## 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# ErrorDocument 403 /.noindex.html# ## AllowOverride None# Require all granted# #Alias /.noindex.html /usr/share/httpd/noindex/index.html
httpd 文件配置如下所示:
# # 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: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Require all granted
Options indexes FollowSymLinks
这个配置表明为 开启目录权限
结束后,你会看到如下所示画面:
以上是"fedora如何开启apache并开启目录浏览模式"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!
目录
文件
模式
浏览
内容
权限
篇文章
服务器
学习
帮助
服务
配置
文件夹
时候
易懂
更多
机器
条理
根目录
注释
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
保险科技 互联网保险
上海喔噻互联网科技有限公司
伟宏互联网科技
广州淘业互联网络科技
狮子座互联网科技
世界互联网领先科技成果
万达互联网科技
兼蜜互联网科技
互联网科技股有哪些
卓越科技互联网 招聘
佳云科技和互联网广告
福建科技产业互联网发展
岳阳华臻互联网科技有限公司
民营互联网公司国防科技
如何创新互联网科技
区块链结合互联网科技
江苏苏星互联网科技有限公司
互联网科技融合创新
兰石爱特工业互联网科技分公司
银川新华互联网科技学校招聘
山东特亿宝互联网科技有限公司
互联网 科技创新
互联网 的科技创新
礼当家互联网科技
深圳天众互联网科技公司
哈尔滨屹滨互联网科技有限公司
中科明德北京互联网科技
有人说阿里系是互联网科技企业
互联网科技的前景
河南商务圈互联网科技有限公司