apache配置,保你配置成功

2021-06-09 22:39:25 字數 677 閱讀 4361

一、配置host檔案:

c:\windows\system32\drivers\etc,開啟hosts,新增訪問虛擬主機的網域名稱,如127.0.0.1       local.guodaifu.com,

local.guodaifu.com是你要訪問的網域名稱

三:apache本身是模組話的,正規的是把include conf/extra/httpd-vhosts.conf前面的#去掉,我是直接在httpd.conf檔案新增的,這是我介紹的不同其他在apache2.2\conf\extra\httpd-vhosts.conf配置虛擬主機原因之一

namevirtualhost *:80

servername local.guodaifu.com 

options followsymlinks includesnoexec indexes

directoryindex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml (伺服器結尾型別,如php的就是.php)

allowoverride options fileinfo

order deny,allow

allow from all

至此,配置完成了。

apache安裝 簡單配置負載均衡和會話保持

首先安裝apache依賴的apr和apr util 2.解壓 tar xzvf apr 1.5.1.tar.gz 3.進入解壓目錄,依次執行 1 2 3 configure make makeinstall 5.解壓 tar xzvf apr util 1.5.4.tar.gz 6.進入解壓目錄,依...

PHP5 APACHE2 2配置成功案例

phpinfo 4 執行http localhost test.php 如果成功,則應該看到乙個含有php徽標的網頁,其中包含大量設定和其他資訊 那麼恭喜你 備註 如果不能執行,使用傳統的模組化方法安裝php5.1.apache 2.2.2 後不能啟動,原因 php壓縮包裡的php5apache2....

PHP5 APACHE2 2配置成功案例

php5 apache2.2配置成功案例 phpinfo 4 執行http localhost test.php 如果成功,則應該看到乙個含有php徽標的網頁,其中包含大量設定和其他資訊 那麼恭喜你 備註 如果不能執行,使用傳統的模組化方法安裝php5.1.apache 2.2.2 後不能啟動,原因...