国产精品视频在线观看_久久成人av_久久机热_成人国产一区_91免费国产视频_精品一区二区av_久久影院在线观看

合肥網(wǎng)站建設(shè)
文章閱讀
網(wǎng)建技巧
優(yōu)化技巧
網(wǎng)建問題
謹宸新聞
行業(yè)新聞

首頁 > 合肥網(wǎng)站建設(shè) > 正文

教你如何用apache同ip多站點架設(shè)

發(fā)布時間:2011/05/01字體:
摘要:教你如何用apache同ip多站點架設(shè),apache同ip多站點架設(shè),告訴您如何用apache同ip多站點架設(shè),apache同ip多站點架設(shè),告訴您如何用apache同ip多站點架設(shè)。這里是指同一IP綁定N個域名,有二種方式實現(xiàn)方法1、僅修改httpd.conf假設(shè)二個域名bbs.xxx.c
這里是指同一IP綁定N個域名,有二種方式實現(xiàn)
方法1、僅修改httpd.conf
假設(shè)二個域名bbs.xxx.com與blog.xxx.com
打開httpd.conf
將文件拖到最下面,加上


view plaincopy to clipboardprint?
 
 ServerName bbs.xxx.com   #域名  
 DocumentRoot "F:/website/bbs"   #該域名對應(yīng)的目錄地址    
   #該節(jié)點是配置權(quán)限、默認首頁啊等等東東。  
 Options FollowSymLinks IncludesNOEXEC Indexes  
 DirectoryIndex  index.php   
 AllowOverride None   
 Order Deny,Allow   
 Allow from all      
 
 
 
 
 ServerName blog.xxx.com  
 DocumentRoot "D:/PHPSite/wordpress"  
   
 Options FollowSymLinks IncludesNOEXEC Indexes  
 DirectoryIndex  index.php   
 AllowOverride None   
 Order Deny,Allow   
 Allow from all   
 
 


 ServerName bbs.xxx.com   #域名
 DocumentRoot "F:/website/bbs"   #該域名對應(yīng)的目錄地址 
   #該節(jié)點是配置權(quán)限、默認首頁啊等等東東。
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex  index.php
 AllowOverride None
 Order Deny,Allow
 Allow from all   




 ServerName blog.xxx.com
 DocumentRoot "D:/PHPSite/wordpress"

 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex  index.php
 AllowOverride None
 Order Deny,Allow
 Allow from all



重啟apache,就OK啦。當然你要修改你的hosts文件。

方法2、修改\PhpServer\Apache2.2\conf\extra\httpd-vhosts.conf
直接將上面一段copy到httpd-vhosts.conf的最后即可。
實際上看名字就知道httpd-vhosts.conf是一個虛擬站點配置集中地,方便管理。
也就是如下:
view plaincopy to clipboardprint?
#  
# Virtual Hosts  
#  
# If you want to maintain multiple domains/hostnames on your  
# machine you can setup VirtualHost containers for them. Most configurations  
# use only name-based virtual hosts so the server doesn't need to worry about  
# IP addresses. This is indicated by the asterisks in the directives below.  
#  
# Please see the documentation at   
#  
# for further details before you try to setup virtual hosts.  
#  
# You may use the command line option '-S' to verify your virtual host  
# configuration.  
 
#  
# Use name-based virtual hosting.  
#  
NameVirtualHost *:80  
 
#  
# VirtualHost example:  
# Almost any Apache directive may go into a VirtualHost container.  
# The first VirtualHost section is used for all requests that do not  
# match a ServerName or ServerAlias in any block.  
#  
 
 
 
 ServerName bbs.xxx.com   #域名  
 DocumentRoot "F:/website/bbs"   #該域名對應(yīng)的目錄地址    
   #該節(jié)點是配置權(quán)限、默認首頁啊等等東東。  
 Options FollowSymLinks IncludesNOEXEC Indexes  
 DirectoryIndex  index.php   
 AllowOverride None   
 Order Deny,Allow   
 Allow from all      
 
 
 
 
 
 ServerName blog.xxx.com  
 DocumentRoot "D:/PHPSite/wordpress"  
   
 Options FollowSymLinks IncludesNOEXEC Indexes  
 DirectoryIndex  index.php   
 AllowOverride None   
 Order Deny,Allow   
 Allow from all   
 
 

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#



 ServerName bbs.xxx.com   #域名
 DocumentRoot "F:/website/bbs"   #該域名對應(yīng)的目錄地址 
   #該節(jié)點是配置權(quán)限、默認首頁啊等等東東。
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex  index.php
 AllowOverride None
 Order Deny,Allow
 Allow from all   





 ServerName blog.xxx.com
 DocumentRoot "D:/PHPSite/wordpress"

 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex  index.php
 AllowOverride None
 Order Deny,Allow
 Allow from all



重啟apache。
如果不行的話,看你的httpd.conf是否啟用了vhost
打開httpd.conf,找到
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
看是否啟用,即去掉Include conf/extra/httpd-vhosts.conf前的#
重啟apache,爽去吧。
本文標題:教你如何用apache同ip多站點架設(shè)
本文網(wǎng)址:http://www.vincecanales.com/wangjianjiqiao/39.html
原創(chuàng)網(wǎng)址:合肥網(wǎng)絡(luò)公司<謹宸科技> 版權(quán)所有,轉(zhuǎn)載請注明出處,并以鏈接形式鏈接網(wǎng)址:www.vincecanales.com
文章標簽:apacheip站點架設(shè)
 上一篇:教你怎樣策劃項目融資書
 下一篇:放出本人收集的一些php常用小技巧
主站蜘蛛池模板: 热久久国产欧美一区二区精品 | 国产亚洲精品国看不卡 | 亚洲日韩中文字幕天堂不卡 | 青青国产精品 | 国产精品jizz在线观看免费 | 真实国产乱视频国语 | 好骚综合在线 | xxx.www日本 | 日本三级视频网站 | a色毛片免费视频 | 精品国内在线视频2019百度 | 日本a级大片 | 波多野结衣一二区 | www深夜视频在线观看高清 | 久久伦理片| 久草资源网站 | www在线视频观看 | 人人干人人舔 | 久久亚洲黄色 | 人人鲁免费播放视频人人香蕉 | 亚洲草逼视频 | av大片 | 久久久青青 | 精品一区二区三区五区六区七区 | 日本亚洲一区二区 | 青娱乐国产盛宴 | 精品日本久久久久久久久久 | 久久一区二区三区免费播放 | 欧美黑人性受xxxx喷水 | jizzxxxx18中国农村 | 日本视频在线看 | 韩国三级香港三级日本三级 | xxx.www日本| 日本视频色 | 国产黄大片在线观看 | 激情图片小说 | 青青久在线观看免费观看 | 在线观看亚洲 | 黄色午夜影院 | 久久99精品久久久久久噜噜噜 | xxxx日本在线播放免费不卡 |