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

首頁 > 網站 > 建站經驗 > 正文

apache虛擬主機配置一例

2019-11-02 16:06:22
字體:
來源:轉載
供稿:網友

復制代碼 代碼如下:

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:http://httpd.apache.org/docs/2.2/vhosts/>

# 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

#        RewriteMap      lowercase       int:tolower

#        RewriteMap      vhost   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>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 廉江市| 连城县| 乐都县| 濉溪县| 长泰县| 万安县| 荥阳市| 嘉善县| 盘锦市| 南木林县| 大渡口区| 泗水县| 句容市| 汶川县| 伊吾县| 和林格尔县| 东辽县| 烟台市| 无棣县| 宝丰县| 开原市| 平山县| 福海县| 怀集县| 桦南县| 龙江县| 芷江| 井研县| 北宁市| 视频| 秭归县| 东海县| 都匀市| 富蕴县| 马边| 富蕴县| 神农架林区| 本溪市| 刚察县| 登封市| 拉萨市|