最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

詳解fedora 開啟 apache 并 開啟目錄瀏覽模式

 更新時間:2018年07月25日 11:28:00   作者:xuyaowen  
這篇文章主要介紹了fedora 開啟 apache 并 開啟目錄瀏覽模式的相關(guān)資料,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下

在內(nèi)網(wǎng)中 暫時需要一臺 文件 服務(wù)器,所以準(zhǔn)備安裝一臺 http服務(wù)器并開啟目錄訪問權(quán)限。這次使用 apache 在 fedora 28 機器上:

因為 fedora 28 已經(jīng)包含 httpd 軟件,使用systemctl start httpd 就能進(jìn)行啟動。

啟動時 默認(rèn)開啟 目錄訪問權(quán)限,但是首次訪問網(wǎng)站根目錄的時候,會顯示test page.

進(jìn)入如下文件夾:

[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.
#
<LocationMatch "^/+$">
  Options -Indexes
  ErrorDocument 403 /.noindex.html
</LocationMatch>
<Directory /usr/share/httpd/noindex>
  AllowOverride None
  Require all granted
</Directory>

進(jìn)行注釋上述文件:

[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.
#
#<LocationMatch "^/+$">
#  Options -Indexes
#  ErrorDocument 403 /.noindex.html
#</LocationMatch>
#<Directory /usr/share/httpd/noindex>
#  AllowOverride None
#  Require all granted
#</Directory>
#Alias /.noindex.html /usr/share/httpd/noindex/index.html

httpd 文件配置如下所示:

<Directory "/var/www/html">
  #
  # 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
</Directory>

Options  indexes FollowSymLinks

這個配置表明為 開啟目錄權(quán)限

結(jié)束后,你會看到如下所示畫面:

總結(jié)

以上所述是小編給大家介紹的fedora 開啟 apache 并 開啟目錄瀏覽模式,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

  • CentOS7.5安裝配置Harbor1.7的全過程

    CentOS7.5安裝配置Harbor1.7的全過程

    這篇文章主要介紹了CentOS7.5安裝配置Harbor1.7的全過程,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-11-11
  • Jdk1.8的安裝簡易教程(Linux和windows)

    Jdk1.8的安裝簡易教程(Linux和windows)

    本文通過一段簡易的代碼給大家介紹Jdk1.8的安裝(Linux和windows),非常不錯,具有一定的參考借鑒價值,需要的朋友參考下吧
    2018-08-08
  • 電腦意外關(guān)機后VMware中l(wèi)inux不能聯(lián)網(wǎng)問題的解決方法

    電腦意外關(guān)機后VMware中l(wèi)inux不能聯(lián)網(wǎng)問題的解決方法

    這篇文章主要為大家解決電腦意外關(guān)機后,再次開機啟動VMware時發(fā)現(xiàn)linux不能聯(lián)網(wǎng)的問題,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2019-03-03
  • Linux字符終端如何用鼠標(biāo)移動一個紅色矩形詳解

    Linux字符終端如何用鼠標(biāo)移動一個紅色矩形詳解

    這篇文章主要給大家介紹了關(guān)于Linux字符終端如何用鼠標(biāo)移動一個紅色矩形的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用Linux具有一定的參考學(xué)習(xí)價值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-05-05
  • 詳解如何使用linux啟動Nacos

    詳解如何使用linux啟動Nacos

    這篇文章主要介紹了如何使用linux啟動Nacos,本文通過代碼示例給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2024-03-03
  • Squid集群做CDN全網(wǎng)加速配置分享

    Squid集群做CDN全網(wǎng)加速配置分享

    主服務(wù)器群,然后在利用Squid逆向緩存web80端口來加速自己的網(wǎng)站.各大門戶網(wǎng)站象163,sina,chinaitlab之類基本都是使用的這種技術(shù),好處是大大的有.比如加速了網(wǎng)絡(luò)和可以防黑客(因為他們見到的都是CDN的主機)
    2013-04-04
  • 詳解Linux搭建DNS服務(wù)器

    詳解Linux搭建DNS服務(wù)器

    這篇文章主要介紹了Linux搭建DNS服務(wù)器,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-04-04
  • 教你一步一步在linux中正確的安裝Xcache加速php

    教你一步一步在linux中正確的安裝Xcache加速php

    這篇文章主要介紹了教你一步一步在linux中正確的安裝Xcache加速php,需要的朋友可以參考下
    2017-04-04
  • Linux Nginx 配置SSL訪問實例詳解

    Linux Nginx 配置SSL訪問實例詳解

    這篇文章主要介紹了Linux Nginx 配置SSL訪問實例詳解的相關(guān)資料,需要的朋友可以參考下
    2017-04-04
  • Linux部署python爬蟲腳本,并設(shè)置定時任務(wù)的方法

    Linux部署python爬蟲腳本,并設(shè)置定時任務(wù)的方法

    今天小編就為大家分享一篇Linux部署python爬蟲腳本,并設(shè)置定時任務(wù)的方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2019-06-06

最新評論

同心县| 长阳| 鄂尔多斯市| 方山县| 桂阳县| 石林| 卢龙县| 眉山市| 申扎县| 浪卡子县| 石城县| 辽中县| 乃东县| 乐陵市| 新化县| 泰宁县| 彭阳县| 利津县| 阿合奇县| 昌吉市| 台南县| 平罗县| 灵台县| 重庆市| 会东县| 司法| 唐山市| 永清县| 乐业县| 资源县| 寿光市| 遵义县| 阿尔山市| 米林县| 清苑县| 水富县| 德钦县| 乌鲁木齐县| 泸定县| 徐水县| 都兰县|