歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 配置Apache Server時的幾點注意

配置Apache Server時的幾點注意

日期:2017/3/1 17:21:38   编辑:關於Linux

安裝apache server的時候,我是參考:http://www.2cto.com/os/201201/117385.html
這篇文檔進行安裝的。這篇文章寫的很詳細,基本上按照這個配置也能做了。

在這裡我把幾個我碰到的問題列出來,希望對大家有所幫助。

1.Apache HTTP Server 安裝時Network Domain如何輸入。這篇文章中沒有寫,但是如果你寫空的話,是沒有辦法安裝成功的。在這裡,您需要像下圖那樣輸入一個localhost,然後才能安裝成功。

\

2。如何修改Web文件路徑:

在安裝文件的conf目錄下有一個httpd.conf文件,編輯當中的.DocumentRoot這個節點,把他編輯為如下的狀態即可.

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "E:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
DocumentRoot "E:/Projects/microstream/SinaApp/1"

3.編輯完目錄後我的系統報了

Windows apache You don't have permission to access / on this server.的錯誤

那是因為你的權限沒有設置好.按照下面操作設置好權限即可運作.

<Directory "E:/Projects/microstream/SinaApp/1">
Allow from all
</Directory>

切記,一定要把Deny from all 改稱Allow from all才行哦

Copyright © Linux教程網 All Rights Reserved