成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

fedora如何開啟apache并開啟目錄瀏覽模式

這篇文章主要為大家展示了“fedora如何開啟apache并開啟目錄瀏覽模式”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“fedora如何開啟apache并開啟目錄瀏覽模式”這篇文章吧。

專業(yè)從事企業(yè)網(wǎng)站建設(shè)和網(wǎng)站設(shè)計(jì)服務(wù),包括網(wǎng)站建設(shè)、域名注冊、虛擬空間、企業(yè)郵箱、微信公眾號(hào)開發(fā)、微信支付寶重慶小程序開發(fā)、重慶APP開發(fā)公司、軟件開發(fā)、等服務(wù)。公司始終通過不懈的努力和以更高的目標(biāo)來要求自己,在不斷完善自身管理模式和提高技術(shù)研發(fā)能力的同時(shí),大力倡導(dǎo)推行新經(jīng)濟(jì)品牌戰(zhàn)略,促進(jìn)互聯(lián)網(wǎng)事業(yè)的發(fā)展。

在內(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ì)看到如下所示畫面:

fedora如何開啟apache并開啟目錄瀏覽模式

以上是“fedora如何開啟apache并開啟目錄瀏覽模式”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

網(wǎng)站標(biāo)題:fedora如何開啟apache并開啟目錄瀏覽模式
文章出自:http://jinyejixie.com/article26/gpigjg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣、靜態(tài)網(wǎng)站、動(dòng)態(tài)網(wǎng)站、網(wǎng)站維護(hù)、網(wǎng)站導(dǎo)航App設(shè)計(jì)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
正阳县| 新宾| 宝清县| 黄陵县| 黄陵县| 噶尔县| 玛纳斯县| 彩票| 峨山| 正安县| 耒阳市| 东阿县| 闸北区| 长白| 香港| 澎湖县| 香河县| 紫金县| 怀柔区| 宝清县| 陇西县| 新河县| 云霄县| 大新县| 易门县| 安泽县| 偏关县| 丰镇市| 蒲城县| 工布江达县| 霍邱县| 长丰县| 通州市| 正定县| 呼图壁县| 大理市| 贡嘎县| 内乡县| 阿城市| 黔南| 砚山县|