濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > 詳解fedora 開啟 apache 并 開啟目錄瀏覽模式

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

熱門標(biāo)簽:大連400電話如何申請(qǐng) 達(dá)亞電銷機(jī)器人官網(wǎng) 如何分析地圖標(biāo)注 電銷機(jī)器人價(jià)值 電銷機(jī)器人怎么接線路 外呼系統(tǒng)坐席費(fèi)計(jì)入會(huì)計(jì)哪個(gè)科目 高德地圖標(biāo)注好做嗎 撫順地圖標(biāo)注 新余高德地圖標(biāo)注怎么修改

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

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

啟動(dòng)時(shí) 默認(rèn)開啟 目錄訪問權(quán)限,但是首次訪問網(wǎng)站根目錄的時(shí)候,會(huì)顯示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

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

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

總結(jié)

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

標(biāo)簽:遼源 海東 南通 楊凌 黃石 衡水 湖南 新鄉(xiāng)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《詳解fedora 開啟 apache 并 開啟目錄瀏覽模式》,本文關(guān)鍵詞  詳解,fedora,開啟,apache,并,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《詳解fedora 開啟 apache 并 開啟目錄瀏覽模式》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于詳解fedora 開啟 apache 并 開啟目錄瀏覽模式的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    岢岚县| 柯坪县| 巴塘县| 马尔康县| 云梦县| 宝丰县| 剑川县| 舟山市| 闻喜县| 图木舒克市| 云南省| 连云港市| 新巴尔虎右旗| 元氏县| 浦东新区| 昆明市| 保亭| 古田县| 白朗县| 山阳县| 尼勒克县| 务川| 新竹县| 宜宾县| 永州市| 霞浦县| 海林市| 策勒县| 双流县| 旌德县| 广饶县| 汾阳市| 扶绥县| 乌审旗| 文山县| 诸暨市| 加查县| 瑞金市| 丹巴县| 包头市| 海城市|