岛国av女优最新电影网站,啊灬啊灬啊灬快灬深视频无遮掩,撕开奶罩揉吮奶头高潮av,色婷婷aV一区二区三区麻豆综合

知識庫

apache配置多ip虛擬機有2種方法
2021-06-04 15:27:05
閱讀()
來源:互聯數據
摘要: ? ?apache配置多ip虛擬有2種方法

apache配置多ip虛擬有2種方法


站群虛擬主機產品鏈接http://www.bxgb88.com/dedicated/hk.html


第一種-通過設置不同的端口來配置


1創建一個目錄,作為接口


2設置apche虛擬主機(不用配置虛擬目錄映射)


httpd.conf開啟虛擬主機配置,接著到httpd-vhosts.conf里面設置


//這里改變端口


DocumentRoot "D:/myblog" //這個就是第一步創建的接口

DirectoryIndex index.html index.htm index.php

Options FollowSymLinks

Allowoverride None

order Allow,deny

Allow from all

DocumentRoot "D:/baidu"

DirectoryIndex index.html index.htm index.php

Options FollowSymLinks

Allowoverride None

order Allow,deny

Allow from all


3-到httpd.conf文件里面修改監聽端口

Listen 80

Listen 81


4-到host文件里面修改映射.登錄網站時候記得加端口號。

apache配置多ip虛擬主機


第二種方法:通過ServerName配置


1創建一個目錄,作為接口


2設置apche虛擬主機(不用配置虛擬目錄映射)


httpd.conf開啟虛擬主機配置,接著到httpd-vhosts.conf里面設置

//記得ip必須為*否則不行的


DocumentRoot "D:/myblog" //目錄

ServerName www.lengai.com //域名

DirectoryIndex index.html index.htm index.php

Options FollowSymLinks

Allowoverride None

order Allow,deny

Allow from all

DocumentRoot "D:/baidu"

ServerName www.beijing.com

DirectoryIndex index.html index.htm index.php

Options FollowSymLinks

Allowoverride None

order Allow,deny

Allow from all


3重啟apache。就可以了,當然要配置hosts


香港多ip虛擬主機就選用互聯數據,7*24小時不間斷機房現場服務,售后無憂。

0

上一篇:一文讀懂什么是云服務器?
下一篇:剛買的云服務器,寶塔面板忘記密碼了該怎么辦?
HKT4為您的網站提供全球IDC資源
立即免費測試