国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

Windows Apache2.4 VC9(ApacheHaus)詳細安裝配置教程

2024-08-27 18:23:57
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了Windows Apache2.4 VC9(ApacheHaus)詳細安裝配置教程,需要的朋友可以參考下

1,Apache下載

選擇一個版本,點擊Download

點擊File For Microsoft Windows

由于Apache HTTP Server官方不提供二進制(可執行)的發行版,所以我們選擇一些貢獻者編譯完成的版本,我們選擇第一個ApacheHaus

點擊ApacheHaus,進入下載頁

選擇其中一個版本,如果你的Windows還沒安裝對應的VC環境的話,選擇對應的VCRedistribute版本下載安裝。我選擇Apache 2.4VC9版,因為我的電腦中已經安裝了VC9的環境。

點擊JumpLinks下第一行的某一個版本,下載對應壓縮包。

2,配置Apache之一--httpd.conf

解壓后進入里面Apache22(最后兩位數字可能不同)文件夾,使用文本編輯器(推薦ultraedit)打開conf文件夾中的httpd.conf配置文件

找到ServerRoot選項,設置Apache目錄,大約在35行左右,將其改成你的Apache程序的文件夾,例:

ServerRoot "C:/Users/myPC/Downloads/httpd-2.2.31-x86-r3/Apache22"

找到Listen選項,設置端口,大約46行,一般不修改,使用默認80,在開啟服務器前請保證80端口未被占用

找到DocumentRoot選項,修改服務器根目錄,例:

DocumentRoot "F:/"

請保證此目錄存在,否則服務器無法正常啟動

修改Directory,保證其與服務器根目錄相同,只修改下面的第一行中引號部分

<Directory "F:/">  #  # 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.2/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.  #  Order allow,deny  Allow from all</Directory>

找到ScriptAlias選項,設置服務器腳本目錄,大約326行,一般將其設置為Apache目錄下的cgi-bin文件夾

ScriptAlias /cgi-bin/ "C:/Users/myPC/Downloads/httpd-2.2.31-x86-r3/Apache22/cgi-bin"

找到隨后的Directory選項,設置腳本目錄,大約342行,需要將其設置為和前面的ScriptAlias目錄相同

<Directory "C:/Users/myPC/Downloads/httpd-2.2.31-x86-r3/Apache22/cgi-bin">  AllowOverride None  Options None  Order allow,deny  Allow from all</Directory>

3,配置Apache之二--ssl配置

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 五华县| 健康| 延长县| 卢氏县| 蒙阴县| 泸溪县| 梅河口市| 镇安县| 汤原县| 杭锦后旗| 临江市| 沙河市| 苍梧县| 上栗县| 竹溪县| 蓬溪县| 同仁县| 东乌珠穆沁旗| 通渭县| 望都县| 清丰县| 荣昌县| 利川市| 宁陵县| 保康县| 汉中市| 温州市| 朔州市| 彭州市| 高邑县| 平阴县| 南岸区| 济宁市| 江西省| 盱眙县| 大英县| 永定县| 赣榆县| 郸城县| 龙游县| 平潭县|