用 Google 搜尋:

Apache 安裝設定教學

Apache 安裝設定教學

官方網站:http://www.apache.org/

實作版本下載點:http://apache.stu.edu.tw/httpd/binaries/win32/apache_2.0.55-win32-x86-no_ssl.msi

功能:功能強大、佔有率最高的 HTTP 伺服器軟體。

安裝步驟

  1. 下載並執行 apache_2.0.55-win32-x86-no_ssl.msi。
  2. 安裝精靈起始(Installation Wizard)畫面:
    • 直接按 Next。
  3. 使用許可協議(License Agreement)畫面:
    • 點選 I accept the terms in the license agreement。
    • 按 Next。
  4. 讀我檔案(Read This First)畫面:
    • 直接按 Next。
  5. 伺服器資訊設定(Server Information)畫面:
    • Network Domain 與 Server Name 請依照實際情況填寫,若不知道可填 localhost。
    • Administrator's Email Address 則是填自己的 Email 信箱。
    • 按 Next。
  6. 安裝類型選擇(Setup Type)畫面:
    • 點選 Custom。
    • 按 Next。
  7. 自訂安裝元件選擇(Custom Setup)畫面:
    • 直接按 Next。
  8. 安裝確認(Ready to Install the Program)畫面:
    • 直接按 Install。
  9. 安裝完成(Installation Wizard Completed)畫面:
    • 按 Finish。
    • 安裝成功。

設定步驟

可將右下角小時鐘旁的Apache Monitor小圖示關閉,不影響伺服器運作。

httpd.conf 設定

用記事本開啟 C:\Program Files\Apache Group\Apache2\conf\httpd.conf,並按照以下原則進行修改。

請自行以關鍵字尋找並取代預設設定,若沒有預設設定則新增在檔案最後面即可。

強調的部分請依實際情況修改。

請注意斜線(/)與反斜線(\)的不同,以免造成不必要的錯誤。

設定完成後必須重新啟動伺服器以套用新的設定。