apache配置虛擬主機後,啟動速度慢

2022-05-03 02:27:09 字數 636 閱讀 6014

apache配置虛擬主機後,啟動速度慢且提示「the requested operation has failed」

可以通過在cmd下啟動,來查詢問題(命令中的「apache2.2」,是服務名,根據自己的來填寫)

我在本地配置了10多個**,每次啟動apache,速度都在5分鐘左右,原來是都沒有配置servername的原因

127.0.0.1>documentroot d:/apache2.2/htdocs/phpmyadmin

127.0.0.2>documentroot d:/apache2.2/htdocs/email

127.0.0.3>documentroot d:/apache2.2/htdocs/help

因是本地測試,隨便配置一些網域名稱即可:

127.0.0.1>documentroot d:/apache2.2/htdocs/phpmyadmin

servername www.

1.com

127.0.0.2>documentroot d:/apache2.2/htdocs/email

servername www.

2.com

apache虛擬主機配置

之前已經在csdn上上傳過apache的文件在這裡補充說明一下,apache2.2.x與tomcat或iis或三者之間的虛擬主機配置。介紹一下如何整合其他 web伺服器,如 iis tomcat 等。網上有 n多整合方案講的都不是很清楚 特別是 windows 下的 這裡要特別提示一下,apache...

apache虛擬主機配置

多個網域名稱 伺服器 對應乙個 ip 位址,配置方法為 namevirtualhost 111.22.33.44 servername www.sample.com documentroot www sample servername www.sample2.com documentroot www...

apache配置虛擬主機

namevirtualhost 80 directoryindex default.php index.html index.php index.htm servername www.host1.com servername host1 com documentroot d wamp www1 er...