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

教你如何用apache同ip多站點架設

2023-05-27    分類: 網(wǎng)站建設

這里是指同一IP綁定N個域名,有二種方式實現(xiàn)
方法1、僅修改httpd.conf
假設二個域名bbs.xxx.com與blog.xxx.com
打開httpd.conf
將文件拖到下面,加上

view plaincopy to clipboardprint?

ServerName bbs.xxx.com #域名
DocumentRoot "F:/website/bbs" #該域名對應的目錄地址
#該節(jié)點是配置權限、默認首頁啊等等東東。
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" #該域名對應的目錄地址
#該節(jié)點是配置權限、默認首頁啊等等東東。
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" #該域名對應的目錄地址
#該節(jié)點是配置權限、默認首頁啊等等東東。
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" #該域名對應的目錄地址
#該節(jié)點是配置權限、默認首頁啊等等東東。
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多站點架設
地址分享:http://aaarwkj.com/news/260784.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設、企業(yè)網(wǎng)站制作、商城網(wǎng)站、靜態(tài)網(wǎng)站網(wǎng)站設計公司、電子商務

廣告

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

成都網(wǎng)站建設
亚洲综合另类视频在线观看| av男人的天堂在线免费| 人妖一区二区三区在线观看| 亚洲精品成av人在线观看| 中文字幕人妻出轨一区二区| 国产黄片免费高清观看| 三欲一区二区三区中文字幕| 久久精品亚洲国产成人av| 亚洲 精品一区二区| 中文字幕成人乱码亚洲| 亚洲欧美日韩精品麻豆| 亚洲国产成在人网站天堂| 老女人性生交大片免费| 欧美日韩亚洲精品内裤| 神马视频一区二区在线观看| 日本一区二区三区久久久| 巨乳人妻一区二区三区| 四虎永久精品在线视频| 日韩欧美国产一区二区精品| 亚洲欧美国产精品日韩| 中文字幕制服国产精品| 国产视频在线一区二区| 黄色18禁网站在线看| 一区二区三区免费视频少妇| 亚洲av十八禁在线播放| 丰满人妻被黑人猛烈进入 | 亚州中文字幕久久一区| 日韩一区不卡在线观看| 韩国av在线免费观看| 色综合色综合色综合色| 久久伊人69日韩精品| 国产精品一区二区日韩新区| 麻豆国产传媒片在线看| 亚洲欧美日韩综合精品久久| 国产成人一区二区三区综合区| 国产精品成人亚洲一区二区 | 日本高清一区二区不卡视频| 欧美高清精品在线视频| 亚洲av日韩精品一区二区| 亚洲成人影院中文字幕| 国产欧美日韩国产欧美日|