apache 虛擬主機配置記錄

2021-05-09 19:27:18 字數 672 閱讀 5691

如題,以備以後使用

1.配置apache httpd.conf檔案:

#虛擬主機ip位址

documentroot "d:/interroot/testprj/"    #虛擬主機響應位址

servername www.distian.com               #虛擬主機url位址

#虛擬主機目錄許可權設定

allowoverride fileinfo

options indexes followsymlinks includes

order allow,deny

allow from all

documentroot "d:/interroot/workplace/"

servername www.workplace.com

allowoverride fileinfo

options indexes followsymlinks includes

order allow,deny

allow from all

…… 2.配置 %systemroot%/system32/driver/ect/hosts檔案

增加如下內容:

127.0.0.1 www.distian.com

127.0.0.1 www.workplace.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...