亚洲韩日午夜视频,欧美日韩在线精品一区二区三区,韩国超清无码一区二区三区,亚洲国产成人影院播放,久草新在线,在线看片AV色

您好,歡迎來到思海網(wǎng)絡,我們將竭誠為您提供優(yōu)質(zhì)的服務! 誠征網(wǎng)絡推廣 | 網(wǎng)站備案 | 幫助中心 | 軟件下載 | 購買流程 | 付款方式 | 聯(lián)系我們 [ 會員登錄/注冊 ]
促銷推廣
客服中心
業(yè)務咨詢
有事點擊這里…  531199185
有事點擊這里…  61352289
點擊這里給我發(fā)消息  81721488
有事點擊這里…  376585780
有事點擊這里…  872642803
有事點擊這里…  459248018
有事點擊這里…  61352288
有事點擊這里…  380791050
技術(shù)支持
有事點擊這里…  714236853
有事點擊這里…  719304487
有事點擊這里…  1208894568
有事點擊這里…  61352289
在線客服
有事點擊這里…  531199185
有事點擊這里…  61352288
有事點擊這里…  983054746
有事點擊這里…  893984210
當前位置:首頁 >> 技術(shù)文章 >> 文章瀏覽
技術(shù)文章

apache配置多域名多端口

添加時間:2011-2-21  添加: admin 

1、單域名單端口設(shè)置如:www.abc.com 默認用80訪問   特別說明,apache的配置默認都在安裝目錄下的conf目錄里面或者是/etc/apache2 不過一定要注意,listen.conf文件中端口監(jiān)聽是否開啟如下圖,表示已經(jīng)開啟80端口監(jiān)聽   \ 直接默認修改default-server.conf    這個配置最好簡單安裝好了,之后,默認已經(jīng)能夠使用了,只是要把它修改成你需要的域名及訪問路徑罷了。   給一個標準配置吧   DocumentRoot "/srv/www/htdocs" #
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs-2.2/mod/core.html#options
        # for more information.
        Options None
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride None
        # Controls who can get stuff from this server.
        Order allow,deny
        Allow from all
</Directory>    2、單域名多端口設(shè)置    <Directory "/srv/www/htdocs/bbs">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<Directory "/srv/www/htdocs/">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> NameVirtualHost   *:80
NameVirtualHost   *:81
<VirtualHost *:80>
          DirectoryIndex  index.html index.php
          ServerName   "www.abc.com"
          DocumentRoot   "/srv/www/htdocs/"  
  </VirtualHost> <VirtualHost *:81>
          DirectoryIndex   index.php
    ServerName   "www.abc.com:81"
          DocumentRoot   "/srv/www/htdocs/bbs/"  
  </VirtualHost>
     3、多域名多端口設(shè)置   <Directory "/srv/www/htdocs/btc">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> <Directory "/srv/www/htdocs/bbs">

  Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<Directory "/srv/www/htdocs/">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> NameVirtualHost   *:80
NameVirtualHost   *:81
<VirtualHost *:80>
          DirectoryIndex  index.html index.php
          ServerName   "www.abc.com"
          DocumentRoot   "/srv/www/htdocs/"  
  </VirtualHost> <VirtualHost *:80>
          DirectoryIndex  index.html index.php
          ServerName   "www.btc.com"
          DocumentRoot   "/srv/www/htdocs/btc"  
  </VirtualHost> <VirtualHost *:81>
          DirectoryIndex   index.php
    ServerName   "www.abc.com:81"
          DocumentRoot   "/srv/www/htdocs/bbs/"  
  </VirtualHost>      需要注意的問題是,多端口監(jiān)聽,一定要注意listen.conf文件,是否開啟了相應端口。

關(guān)鍵字:apache 配置 域名 端口

分享到:

頂部 】 【 關(guān)閉
版權(quán)所有:佛山思海電腦網(wǎng)絡有限公司 ©1998-2024 All Rights Reserved.
聯(lián)系電話:(0757)22630313、22633833
中華人民共和國增值電信業(yè)務經(jīng)營許可證: 粵B1.B2-20030321 備案號:粵B2-20030321-1
網(wǎng)站公安備案編號:44060602000007 交互式欄目專項備案編號:200303DD003  
察察 工商 網(wǎng)安 舉報有獎  警警  手機打開網(wǎng)站