最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

apache虛擬主機配置一例

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

復制代碼 代碼如下:

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)文章

  • CentOS服務器下安裝Webmin管理系統(tǒng)的步驟

    CentOS服務器下安裝Webmin管理系統(tǒng)的步驟

    如果你想像windows圖形化管理系統(tǒng),Webmin無疑是最好的選擇。
    2011-03-03
  • apache日志配置一例

    apache日志配置一例

    apache日志配置一例,包括指定存儲目錄與格式、自動刪除過期的日志文件,有需要的朋友可以參考下
    2013-02-02
  • centos7.2搭建nginx的web服務器部署uniapp項目

    centos7.2搭建nginx的web服務器部署uniapp項目

    這篇文章主要介紹了centos7.2搭建nginx的web服務器部署uniapp項目,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-10-10
  • Linux設置Service服務開機自啟的教程指南

    Linux設置Service服務開機自啟的教程指南

    在 Linux 系統(tǒng)中,確保關(guān)鍵服務能夠在系統(tǒng)啟動時自動運行是一項非常重要的任務,尤其是在服務器環(huán)境中,我們希望一些服務能夠在系統(tǒng)每次啟動后自動啟動,從而確保業(yè)務的持續(xù)運行,本指南將詳細介紹如何在Linux系統(tǒng)中設置Service服務開機自啟,需要的朋友可以參考下
    2024-10-10
  • linux安裝apache過程中注意的問題

    linux安裝apache過程中注意的問題

    這篇文章主要為大家介紹了linux安裝apache過程中注意的問題,幫助大家進行順利安裝,感興趣的小伙伴們可以參考一下
    2016-01-01
  • Linux內(nèi)核中的設計模式之全面理解與示例代碼

    Linux內(nèi)核中的設計模式之全面理解與示例代碼

    這篇文章主要介紹了Linux內(nèi)核中的設計模式之全面理解與示例代碼,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2024-02-02
  • Centos6安裝中文字體的方法

    Centos6安裝中文字體的方法

    這篇文章主要介紹了Centos6安裝中文字體的方法,本文給大家介紹的非常詳細具有參考借鑒價值,需要的朋友可以參考下
    2016-10-10
  • 詳解Linux環(huán)境下NodeJS的安裝配置(HelloWorld)

    詳解Linux環(huán)境下NodeJS的安裝配置(HelloWorld)

    本篇文章主要介紹了Linux環(huán)境下NodeJS的安裝配置,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-01-01
  • Ubuntu固定虛擬機ip地址的方法教程

    Ubuntu固定虛擬機ip地址的方法教程

    本文詳細介紹了如何在Ubuntu虛擬機中固定IP地址,包括檢查和編輯`/etc/apt/sources.list`文件、更新網(wǎng)絡配置文件以及使用NetworkManager或netplan進行配置,需要的朋友可以參考下
    2025-02-02
  • Linux命令之文件分割split命令方式

    Linux命令之文件分割split命令方式

    這篇文章主要介紹了Linux命令之文件分割split命令方式,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2024-04-04

最新評論

呼图壁县| 平度市| 沙坪坝区| 济宁市| 永济市| 龙川县| 黄陵县| 大兴区| 崇仁县| 阳春市| 华亭县| 桃园市| 亚东县| 玉环县| 全南县| 平阳县| 南安市| 福安市| 大悟县| 唐河县| 通许县| 广德县| 辽阳市| 关岭| 宾川县| 右玉县| 景宁| 洛川县| 繁昌县| 邯郸市| 彭山县| 望江县| 达尔| 丹江口市| 博白县| 彭泽县| 普兰店市| 崇信县| 东乌珠穆沁旗| 桐梓县| 双辽市|