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

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

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

這里是指同一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,爽去吧。

網(wǎng)頁題目:教你如何用apache同ip多站點架設(shè)
本文地址:http://www.aaarwkj.com/news34/260784.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、網(wǎng)站設(shè)計公司ChatGPT、Google、外貿(mào)網(wǎng)站建設(shè)靜態(tài)網(wǎng)站

廣告

聲明:本網(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ǎng)站建設(shè)
成人性生交视频免费看| 一区二区蜜桃在线观看| 亚洲精品欧美综合二区| 午夜在线精品福利视频 | 日本免费熟女一区二区| 国产精品亚洲视频欧美视频| 国产丝袜肉丝在线播放| 日本91一区二区不卡| 国产免费av一区二区在线观看| 中文字幕av日韩在线| 日本在线看片一区二区| 欧美日韩台湾一区二区| 97精品久久九九中文字幕| 久久一二三四区中文字幕| 一区二区五区日韩国产| 丰满少妇在线观看网站| 成人三级中文字幕电影| 国产精品神马午夜福利| 日韩av人妻一区二区三区| 欧美香蕉一区二区视频| 久久精品熟女亚洲av色| 国产91日韩欧美在线观看| 一区二区视频精品在线观看| 亚洲精品国产精品乱码不卞| 色哟哟网站之中文字幕| 青青草原一区在线观看| 久久精品国产一区二区三| 丰满人妻在线一区二区三区| 亚洲熟女内射特写一区| 亚洲成色在线综合剧情网站| 日本熟女视频免费观看| 91麻豆国产福利在线| 美国一级二级三级黄片| 中文字幕国产精品综合| 欧美大吊视频在线观看| 日韩三级av在线免费观看| 久久热福利视频就在这里| 一区二区三区在线观看淫| 中文字幕中文字幕乱码| 亚洲欧美日韩伦理一区| 亚洲综合日韩欧美一区二区三区|