欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時間:2012年03月11日 00:28:19   作者:  
Apache虛擬主機的配置和泛域名解析實現(xiàn)代碼,需要的朋友可以參考下
虛擬主機的配置
  基于IP地址的虛擬主機配置
  Listen 80
  DocumentRoot /www/jb51
  ServerName www.dbjr.com.cn
  DocumentRoot /www/jb512
  ServerName www.jb512.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/jb51-80
  ServerName www.dbjr.com.cn
  DocumentRoot /www/jb51-8080
  ServerName www.dbjr.com.cn
  DocumentRoot /www/example2-80
  ServerName www.jb51.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/jb51
  ServerName www.dbjr.com.cn
  ServerAlias jb51.net. *.jb51.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/jb51
  ServerName www.dbjr.com.cn
  # 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.dbjr.com.cn
  DocumentRoot /www/domain-80
  ServerName www.dbjr.com.cn
  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/jb51
  ServerName www.dbjr.com.cn
  DocumentRoot /www/example2
  ServerName www.example2.org
  DocumentRoot /www/example3
  ServerName www.example3.net
  網(wǎng)站泛域名解析
  添加一個虛擬主機配置(如下):
  
  DocumentRoot d:/web/jb51 # 網(wǎng)站根目錄的絕對路徑
  ServerName www.dbjr.com.cn # 網(wǎng)站域名
  ServerAlias *.jb51.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>

相關(guān)文章

  • Linux在丟失的情況下重置密碼的教程

    Linux在丟失的情況下重置密碼的教程

    這篇文章主要介紹了Linux在丟失的情況下重置密碼,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-10-10
  • 一步步教你配置并使用Xshell7免費版

    一步步教你配置并使用Xshell7免費版

    想要輕松掌握一款強大的終端仿真器嗎?恭喜你找到了答案!本指南將一步步教你如何配置并使用?Xshell7?免費版,無論是新手還是資深用戶,都能在這里找到實用技巧和驚喜,立即跟隨我們的腳步,探索?Xshell7?的魅力吧!讓我們一起開啟高效運維之旅!
    2024-01-01
  • linux操作系統(tǒng)利用python實現(xiàn)任務(wù)管理器可視化功能

    linux操作系統(tǒng)利用python實現(xiàn)任務(wù)管理器可視化功能

    這篇文章主要介紹了linux操作系統(tǒng)下利用python實現(xiàn)任務(wù)管理器可視化功能,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-11-11
  • CentOS7如何修改SSH登錄端口

    CentOS7如何修改SSH登錄端口

    本篇文章主要介紹了CENTOS7如何修改SSH登錄端口 ,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-06-06
  • windows中apache 301頁面跳轉(zhuǎn)實現(xiàn)方法

    windows中apache 301頁面跳轉(zhuǎn)實現(xiàn)方法

    下面我們來總結(jié)windows中apache 301頁面跳轉(zhuǎn)實現(xiàn)方法,目前最主流的有二種一種是在寫.htaccess文件方法
    2013-01-01
  • 開啟Apache mod_rewrite模塊示例代碼

    開啟Apache mod_rewrite模塊示例代碼

    這篇文章主要介紹了如何開啟Apache mod_rewrite模塊,需要的朋友可以參考下
    2014-03-03
  • 解決CentOS 7升級Python到3.6.6后yum出錯問題總結(jié)

    解決CentOS 7升級Python到3.6.6后yum出錯問題總結(jié)

    這篇文章主要介紹了CentOS 7升級Python到3.6.6后yum出錯問題解決總結(jié),本文給大家介紹的非常詳細具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-09-09
  • 101個腳本之建立linux回收站的腳本

    101個腳本之建立linux回收站的腳本

    眾所周知,linux是沒有回收站的,一些人很害怕刪錯東西(有經(jīng)驗的linux管理員極少范這錯誤),個人不建議回收站,而應(yīng)該是培養(yǎng)個人的安全意識。有點小跑題
    2016-08-08
  • linux中如何查看Raid磁盤陣列信息

    linux中如何查看Raid磁盤陣列信息

    這篇文章主要介紹了linux中如何查看Raid磁盤陣列信息的相關(guān)資料,需要的朋友可以參考下
    2015-09-09
  • crontab執(zhí)行時間與系統(tǒng)時間不一致問題解決

    crontab執(zhí)行時間與系統(tǒng)時間不一致問題解決

    這篇文章主要給大家介紹了關(guān)于crontab執(zhí)行時間與系統(tǒng)時間不一致問題的解決方法,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-01-01

最新評論