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

首頁 > 網站 > Apache > 正文

apache虛擬主機配置一例

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

復制代碼 代碼如下:

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>

您可能感興趣的文章:

apache虛擬主機三種配置方式小結在Apache服務器上添加虛擬主機功能的方法給Apache虛擬主機增加端口的方法apache服務器一個ip(如:127.0.0.1)和多個域名(虛擬主機)的綁定apache虛擬主機的配置指南apache中使用mod_gnutls模塊實現多個SSL站點配置(多個HTTPS協議的虛擬主機)apache配置虛擬主機的方法詳解13個實用的Apache Rewrite重寫規則Apache偽靜態Rewrite詳解Apache Rewrite實現URL的301跳轉和域名跳轉Apache Rewrite url重定向功能的簡單配置用ISAPI_Rewrite讓IIS也支持如Apache下.htaccess的URL重寫Apache中Virtual Host虛擬主機配置及rewrite參數說明
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 荔浦县| 家居| 平顶山市| 通山县| 中阳县| 平邑县| 雷山县| 五寨县| 右玉县| 吉安市| 深水埗区| 宜昌市| 江都市| 崇左市| 凯里市| 海安县| 金川县| 安泽县| 林口县| 仪征市| 娱乐| 图木舒克市| 盐津县| 乌鲁木齐市| 江西省| 额敏县| 平果县| 望奎县| 两当县| 马鞍山市| 涞水县| 高平市| 新民市| 崇明县| 河北区| 曲靖市| 封丘县| 虎林市| 富宁县| 吉木乃县| 永福县|