欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

apache虛擬主機配置一例

 更新時間:2013年02月09日 20:20:35   作者:  
apache虛擬主機配置一例,有需要的朋友可以參考下

復(fù)制代碼 代碼如下:

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>

相關(guān)文章

  • Ubuntu修改密碼及密碼復(fù)雜度策略設(shè)置方法

    Ubuntu修改密碼及密碼復(fù)雜度策略設(shè)置方法

    這篇文章主要介紹了Ubuntu修改密碼及密碼復(fù)雜度策略設(shè)置,方法,本文給大家介紹的非常詳細,對大家的學(xué)習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-08-08
  • Vim如何使用相對行號實現(xiàn)一切操作詳解

    Vim如何使用相對行號實現(xiàn)一切操作詳解

    在使用用Vim時時常會遇到像復(fù)制多行或者想快速向下/向上移動多行時而不知道行數(shù)的情況, 今天發(fā)現(xiàn)一個Vim對此有幫助的特性: 相對行號,下面這篇文章主要給大家介紹了關(guān)于Vim如何使用相對行號實現(xiàn)一切操作的相關(guān)資料,需要的朋友可以參考下。
    2017-11-11
  • Linux實現(xiàn)科學(xué)上網(wǎng)

    Linux實現(xiàn)科學(xué)上網(wǎng)

    本文給大家介紹的是Linux下使用plink ssh + privoxy 實現(xiàn)局域網(wǎng)共享代理,非常的全面細致,這里推薦給大家。
    2015-03-03
  • Linux里Makefile是什么?它是如何工作的?

    Linux里Makefile是什么?它是如何工作的?

    今天小編就為大家分享一篇關(guān)于makefile是什么及其工作原理的文章,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2018-09-09
  • linux網(wǎng)絡(luò)NAT配置方式詳解

    linux網(wǎng)絡(luò)NAT配置方式詳解

    這篇文章主要為大家詳細介紹了linux網(wǎng)絡(luò)NAT配置方式,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2018-08-08
  • 圖解linux安裝tomcat(附常用命令)

    圖解linux安裝tomcat(附常用命令)

    這篇文章主要以圖片文字結(jié)合的方式為大家介紹了linux安裝tomcat,并linux操作tomcat一些常用命令,感興趣的小伙伴們可以參考一下
    2016-01-01
  • Ubuntu 安裝Eclipse 菜單無法使用解決辦法

    Ubuntu 安裝Eclipse 菜單無法使用解決辦法

    這篇文章主要介紹了Ubuntu 安裝Eclipse 菜單無法使用解決辦法的相關(guān)資料,需要的朋友可以參考下
    2017-03-03
  • centos把網(wǎng)卡名稱修改為eth0的方法

    centos把網(wǎng)卡名稱修改為eth0的方法

    本篇文章主要介紹了centos把網(wǎng)卡名稱修改為eth0,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-02-02
  • 在linux服務(wù)器下使用版本控制軟件SVN的方法

    在linux服務(wù)器下使用版本控制軟件SVN的方法

    下面小編就為大家分享一篇在linux服務(wù)器下使用版本控制軟件SVN的方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2017-12-12
  • Linux中如何查看已掛載的文件系統(tǒng)類型詳解

    Linux中如何查看已掛載的文件系統(tǒng)類型詳解

    這篇文章主要給大家介紹了關(guān)于在Linux中如何查看已掛載的文件系統(tǒng)類型的相關(guān)資料,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習或者工作具有一定的參考學(xué)習價值,需要的朋友們下面隨著小編來一起學(xué)習學(xué)習吧
    2018-11-11

最新評論