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

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

2022-10-02    分類: 虛擬主機(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

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/workplace/"
ServerName www.workplace.com
<Directory "E:/InterRoot/workplace/">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/busymouse_test/"
ServerName www.test.com
<Directory "E:/InterRoot/busymouse_test/">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
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"
<Directory "E:/InterRoot/iptv_for_browser/auth">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/iptv_for_browser/api"
ServerName voiz.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:/InterRoot/iptv_for_browser/api">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/iptv_for_browser/user"
ServerName user.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:/InterRoot/iptv_for_browser/user">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/iptv_for_browser/center"
ServerName center.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:/InterRoot/iptv_for_browser/center">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/iptv_for_browser/img"
ServerName img.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:/InterRoot/iptv_for_browser/img">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:/InterRoot/iptv_for_browser/log"
ServerName log.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:/InterRoot/iptv_for_browser/log">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 192.168.0.110:80>
DocumentRoot "E:\InterRoot\billing_new\front"
ServerName admin.billing.com
ErrorLog "E:/InterRoot/iptv_for_browser/serverlog/apache.log"
<Directory "E:\InterRoot\billing_new\front">
AllowOverride FileInfo
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

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

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

廣告

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

成都網(wǎng)頁設(shè)計(jì)公司
韩国黄色理论片一区二区麻豆 | 日本少妇人妻中文字幕| 亚洲综合一区国产精品| 国产91精品在线观看| 97在线亚洲欧美视频| 国产三级精品大乳人妇| 中文字幕一区二区三区网站| 国产精品一区二区欧美激情| 午夜男女激情在线观看| 国产精品人一区二区三区| 欧美性色黄大片人与善| 天天精品国产av九九久久久| 极品美女被插到高潮喷水| 久久碰国产一区二区三区| 韩国日本午夜福利在线| 日本高清精品视频免费| 熟女人妻av五十路六十路| 日韩一区二区免费看视频| 偷拍色图一区二区二区| 不卡的视频在线观看| 久久97精品人人做人人爽| 日本2区3区视频在线观看| 久久精品成人无码观看56| 欧美福利区免费观看视频| av国产剧情在线观看| 亚洲精品女同专区视频| 日本岛国大片在线视频| 乱熟av一区二区三区| 国产精品一级片免费看| 欧美高清在线观看一区二区| 日韩美女毛片啪啪响| 欧美亚洲少妇人妻系列| 未满十八周岁禁看视频| 中文字幕一区二区av| 国产黄片自拍视频免费看| 亚洲欧美国产另类综合| 久久五十路初次拍五十路| 在线视频日韩欧美国产二区| 日韩色图在线观看视频| 91九色视频免费观看| 国内精品亚洲成av人片麻豆|