国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

apache虛擬主機配置一例

2024-08-27 18:29:36
字體:
來源:轉載
供稿:網友

復制代碼 代碼如下:


fivetrees extra # cat httpd-vhosts.conf_bak
#
# 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
# <URL:>
# 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
#NameVirtualHost *:443
#
# 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 <VirtualHost> block.
#
#<VirtualHost 192.168.1.66>
#RewriteEngine On
#RewriteMaplowercaseint:tolower
#RewriteMapvhost txt:/usr/local/apache/conf/host.txt
#RewriteCond%{HTTP_HOST} !^$
#RewriteCond${lowercase:%{HTTP_HOST}|NONE} ^(.+)$
#RewriteRule^/(.*...)$ ${vhost:%1...}/$1
#</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/all_dir
ServerName *
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/1
ServerName 1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/2
ServerName 2.com
</VirtualHost>

#<VirtualHost *:443>
#DocumentRoot /home/hello
#ServerName hello.baidu.com
#</VirtualHost>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 太仓市| 淅川县| 姚安县| 庆云县| 商丘市| 宣武区| 怀化市| 玉林市| 宜春市| 安宁市| 太白县| 佛冈县| 阿克陶县| 桃源县| 邹城市| 祥云县| 扬州市| 黔南| 江城| 长泰县| 神农架林区| 南木林县| 临颍县| 观塘区| 轮台县| 扎兰屯市| 静乐县| 永清县| 讷河市| 新宁县| 中西区| 安阳县| 深州市| 旌德县| 吉安市| 夏津县| 普洱| 英德市| 依兰县| 普兰店市| 溆浦县|