国产探花免费观看_亚洲丰满少妇自慰呻吟_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>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 凤城市| 安吉县| 南皮县| 友谊县| 博罗县| 鹰潭市| 沁源县| 甘洛县| 蕉岭县| 湄潭县| 华蓥市| 察隅县| 建水县| 安吉县| 滕州市| 台北市| 富裕县| 和林格尔县| 北安市| 和龙市| 漯河市| 会同县| 福清市| 和田市| 江永县| 壤塘县| 定结县| 舟山市| 德阳市| 鄂托克前旗| 嘉定区| 郧西县| 伽师县| 肇源县| 卢龙县| 连南| 建始县| 南乐县| 博乐市| 延津县| 湛江市|