中文字幕第五页-中文字幕第页-中文字幕韩国-中文字幕最新-国产尤物二区三区在线观看-国产尤物福利视频一区二区

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

2022-10-02    分類: 虛擬主機

虛擬主機的配置
  基于IP地址的虛擬主機配置
  Listen 80
  DocumentRoot /www/zz
  ServerName www.zz.net
  DocumentRoot /www/zz2
  ServerName www.zz2.org
  基于IP和多端口的虛擬主機配置
  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
  單個IP地址的服務(wù)器上基于域名的虛擬主機配置:
  # 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
  在多個IP地址的服務(wù)器上配置基于域名的虛擬主機:
  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 …
  在不同的端口上運行不同的站點:
  基于多端口的服務(wù)器上配置基于域名的虛擬主機。
  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的混合虛擬主機的配置:
  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)站泛域名解析
  添加一個虛擬主機配置(如下):
  
  DocumentRoot d:/web/zz # 網(wǎng)站根目錄的絕對路徑
  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虛擬主機的配置和泛域名解析實現(xiàn)代碼
網(wǎng)頁URL:http://www.2m8n56k.cn/news/200664.html

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

廣告

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

綿陽服務(wù)器托管
主站蜘蛛池模板: 欧美一区视频 | 永久毛片 | 丝袜足液精子免费视频 | 久久久久欧美精品网站 | 久久视频精品53在线观看 | a级毛片毛片免费很很综合 a级毛片免费 | 欧美野外性k8播放性迷宫 | 久久精品国产欧美日韩99热 | 亚洲人成影院午夜网站 | 国产在线视频欧美亚综合 | 91精品观看91久久久久久 | 九色97| 夜夜操影院 | 欧美亚洲国产精品久久久 | 日本久久久久一级毛片 | 欧美一级片在线播放 | 日本高清乱偷www | 精品免费久久久久久久 | 亚洲综合伦理一区 | 人成精品| 成人在线观看午夜 | 成人免费小视频 | 另类二区三四 | 精品久久网 | 一级片观看 | 日本www在线视频 | 国产一区二区在线看 | 成人在线免费视频播放 | 老王午夜69精品影院 | 国产精品正在播放 | 日韩欧美视频一区二区 | 国产日韩久久 | 成人美女网 | 日本综合欧美一区二区三区 | 中文国产成人精品久久一 | 国产伦久视频免费观看视频 | 手机在线毛片免费播放 | 日本久操 | 国产欧美亚洲三区久在线观看 | 日本一区二区三区高清福利视频 | 国产成人精品一区二区免费视频 |