apache配置虛擬主機

2021-07-03 10:47:22 字數 392 閱讀 8714

本人新手,需要配置apache虛擬主機,主要是在本機上跑,基於主機名,在httpd-vhosts.conf中配置如下

namevirtualhost 127.0.0.1:80

documentroot "e:\apache24\htdocs"

servername www.test.com

errorlog "logs/error.log"

customlog "logs/cyerp.cocar.com-access.log" common

本文新手,發現開啟虛擬主機80埠之後,之前的那些自己測試的專案無法開啟,估計是埠的問題,只需要在http.conf中加上listen 8080,即能用8080埠開啟其他專案,給自己記著。

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...