Apache伺服器幾點簡單配置

2021-06-08 23:25:49 字數 643 閱讀 5849

1.  禁止目錄瀏覽設定:

開啟conf目錄下的httpd.conf檔案,然後搜尋「options indexes followsymlinks」

去掉 indexes  也就是變為 options followsymlinks 即可。

2  . 全域性預設頁面設定

directoryindex index.shtml index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml default.php

3. ssi 支援設定:

1. 開啟conf目錄下的httpd.conf檔案,搜尋「addtype text/html .shtml」,找到:

# addtype text/html .shtml

# addoutputfilter includes .shtml

把這兩行前面的#去掉 。

2. 然後搜尋「options indexes followsymlinks」

在搜尋到的那一行後面新增「 includes」

即將該行改變為 options indexes followsymlinks includes

重新啟動即可。

Apache 伺服器簡單配置例項

本人最近學習無線程式設計,需要 apache apache2.0 web伺服器,在自己家裡瞎搞了好長一段時間,把我這配置好的過程共享給沒有經驗的 apache 初級使用者。1.首先,假如你把檔案儲存在 e web www 中。2.c program files apache group apache...

apache伺服器配置

1.首先說明監聽埠 listen 80 2.然後是主站點的配置 基本配置 serveradmin com documentroot var www html servername test.com errorlog logs amc error log customlog logs amc acce...

Apache服務 前端伺服器配置

一 重要概念 虛擬主機 virtualhost 對外開的虛擬主機和埠號 vhosts.conf 虛擬主機配置檔案 workers.properties worker的配置檔案,tomcat 或其他伺服器 的連線池配置 hosts 本地host檔案,做本地的網域名稱對映,網域名稱解析會首先找到這個檔案...