欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Apache虛擬主機(jī)的配置和泛域名解析實(shí)現(xiàn)代碼

2022-10-02    分類(lèi): 虛擬主機(jī)

虛擬主機(jī)的配置
  基于IP地址的虛擬主機(jī)配置
  Listen 80
  DocumentRoot /www/zz
  ServerName www.zz.net
  DocumentRoot /www/zz2
  ServerName www.zz2.org
  基于IP和多端口的虛擬主機(jī)配置
  Listen 172.20.30.40:80
  Listen 172.20.30.40:8080
  Listen 172.20.30.50:80
  Listen 172.20.30.50:8080
  DocumentRoot /www/zz-80
  ServerName www.zz.net
  DocumentRoot /www/zz-8080
  ServerName www.zz.net
  DocumentRoot /www/example2-80
  ServerName www.zz.org
  DocumentRoot /www/example2-8080
  ServerName www.example2.org
  單個(gè)IP地址的服務(wù)器上基于域名的虛擬主機(jī)配置:
  # Ensure that Apache listens on port 80
  Listen 80
  # Listen for virtual host requests on all IP addresses
  NameVirtualHost *:80
  DocumentRoot /www/zz
  ServerName www.zz.net
  ServerAlias zz.net. *.zz.net
  # Other directives here
  DocumentRoot /www/example2
  ServerName www.example2.org
  # Other directives here
  在多個(gè)IP地址的服務(wù)器上配置基于域名的虛擬主機(jī):
  Listen 80
  # This is the “main” server running on 172.20.30.40
  ServerName server.domain.com
  DocumentRoot /www/mainserver
  # This is the other address
  NameVirtualHost 172.20.30.50
  DocumentRoot /www/zz
  ServerName www.zz.net
  # Other directives here …
  DocumentRoot /www/example2
  ServerName www.example2.org
  # Other directives here …
  在不同的端口上運(yùn)行不同的站點(diǎn):
  基于多端口的服務(wù)器上配置基于域名的虛擬主機(jī)。
  Listen 80
  Listen 8080
  NameVirtualHost 172.20.30.40:80
  NameVirtualHost 172.20.30.40:8080
  ServerName www.zz.net
  DocumentRoot /www/domain-80
  ServerName www.zz.net
  DocumentRoot /www/domain-8080
  ServerName www.example2.org
  DocumentRoot /www/otherdomain-80
  ServerName www.example2.org
  DocumentRoot /www/otherdomain-8080
  基于域名和基于IP的混合虛擬主機(jī)的配置:
  Listen 80
  NameVirtualHost 172.20.30.40
  DocumentRoot /www/zz
  ServerName www.zz.net
  DocumentRoot /www/example2
  ServerName www.example2.org
  DocumentRoot /www/example3
  ServerName www.example3.net
  網(wǎng)站泛域名解析
  添加一個(gè)虛擬主機(jī)配置(如下):
  
  DocumentRoot d:/web/zz # 網(wǎng)站根目錄的絕對(duì)路徑
  ServerName www.zz.net # 網(wǎng)站域名
  ServerAlias *.zz.net # 網(wǎng)站泛域名

APACHE泛域名配置參考

NameVirtualHost 192.168.0.110


DocumentRoot "E:/InterRoot/workplace/"
ServerName www.workplace.com

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/busymouse_test/"
ServerName www.test.com

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/auth"
ServerName auth.billing.com
ServerAlias auth.billing.com *.auth.billing.com
#泛域名解析
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/api"
ServerName voiz.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/user"
ServerName user.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/center"
ServerName center.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/img"
ServerName img.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:/InterRoot/iptv_for_browser/log"
ServerName log.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all




DocumentRoot "E:\InterRoot\billing_new\front"
ServerName admin.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"

AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all

網(wǎng)站標(biāo)題:Apache虛擬主機(jī)的配置和泛域名解析實(shí)現(xiàn)代碼
網(wǎng)頁(yè)URL:http://aaarwkj.com/news/200664.html

網(wǎng)站建設(shè)、網(wǎng)絡(luò)推廣公司-創(chuàng)新互聯(lián),是專(zhuān)注品牌與效果的網(wǎng)站制作,網(wǎng)絡(luò)營(yíng)銷(xiāo)seo公司;服務(wù)項(xiàng)目有虛擬主機(jī)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

綿陽(yáng)服務(wù)器托管
亚洲国产精品中文字幕久久| 国产精品国产三级国产普通话99| 国产精品自拍午夜福利| 国产精品一区久久91| 亚洲巨人精品福利导航| 日韩精品视频一区二区在线观看| 丰满人妻一区二区三区色| 国产精品伦一区二区三级| 偷拍视频一区二区三区| 男人一插就想射的原因| 日韩国产推荐一区二区| 国产精品日本一区二区三区在线| 九九在线视频免费观看精彩| 自拍偷拍欧美日韩第一页| 四虎免费在线视频观看| 亚洲香蕉av在线一区二区三区| 亚洲av少妇高潮流白浆在线| 国产日产精品久久婷婷色| 国产亚洲一区二区三区乱码| 日韩av一区二区免费在线观看| av东京热狠狠男人的天堂| 五月婷婷丁香花综合网| 国产精品水嫩水嫩粉嫩 | 九九热精品在线观看视频| 国产日产精品久久一区| 精品一区中文字幕少妇人妻| 亚洲国产精品97视频| 免费在线一区二区av| 91久久精品人妻一区二区| 欧美精品久久久久九九九| 国产剧情av一区在线观看| 精品欧美国产日韩在线观看| 伦理在线视频免费观看视频| 国产成人精品久久性色av| 国语对白自拍视频在线播放| 日韩免费精品一区二区| 五月天亚洲综合小说网| 亚洲精品欧美综合二区| 久久精品一区二区日韩| 91激情黑丝在线观看| 亚洲欧洲精品专线九九|