【問題】XAMPP的 Virtual Host 問題

顯示結果從第 1 筆 到 2 筆,共計 2 筆
  1. #1
    會員
    註冊日期
    2006-11-03
    所在地區
    ADSL 2M/256
    討論區文章
    2

    【問題】XAMPP的 Virtual Host 問題

    我是用XAMPP1.5.4a架在WIN 2003上但就是沒辦法同一IP對兩個網域.也都看過找過很多設定說明(也爬過文)但就是不行~煩請各位大大看是哪裏問題~PS:一個網域是OK的~一個網域是更改這個檔案httpd.conf 但設兩個網域是更改這個檔案httpd-vhosts.conf ~如下 (DNS是沒問題狀態下然後httpd.conf是沒更改狀態下)


    #
    # 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 xxx.xxx.xxx.xxx:80

    #
    # 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 xxx.xxx.xxx.xxx:80>
    ## ServerAdmin [email protected]
    ## DocumentRoot /xxx/abc
    ## ServerName abc.xxx.idv.tw
    ## ServerAlias *.xxx.idv.tw
    ## ErrorLog log/xxx.idv.tw-error_log
    ## CustomLog log/xxx.idv.tw-access_log common
    ##</VirtualHost>

    ##<VirtualHost xxx.xxx.xxx.xxx:80>
    ## ServerAdmin [email protected]
    ## DocumentRoot /xxx/def
    ## ServerName def.xxx.idv.tw
    ## ErrorLog logf/xxx.idv.tw-error_log
    ## CustomLog log/xxx.idv.tw-access_log common
    ##</VirtualHost>






    XAMPP基本套件如下
    Apache HTTPD 2.2.3, MySQL 5.0.24a, PHP 5.1.6 + 4.4.4 + PEAR + Switch, MiniPerl 5.8.7, Openssl 0.9.8d, phpMyAdmin 2.9.0.1, XAMPP Control Panel 2.3, Webalizer 2.01-10, Mercury Mail Transport System für Win32 und NetWare Systems v4.01a, FileZilla FTP Server 0.9.18, SQLite 2.8.15, ADODB 4.91, Zend Optimizer 3.0.1, XAMPP Security. SSI bug fixed. For Windows 98, 2000, XP.



    謝謝各位大大


    此文章於 2006-11-04 06:38 AM 被 sam369 編輯。

  2. #2
    會員
    註冊日期
    2006-11-03
    所在地區
    ADSL 2M/256
    討論區文章
    2

    回覆: 【問題】XAMPP的 Virtual Host 問題

    把#拿掉 apache就無法啟動耶!!

    NameVirtualHost xxx.xxx.xxx.xxx:80

    #
    # 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 xxx.xxx.xxx.xxx:80>
    ServerAdmin [email protected]
    DocumentRoot /xxx/abc
    ServerName abc.xxx.idv.tw
    ServerAlias *.xxx.idv.tw
    ErrorLog log/xxx.idv.tw-error_log
    CustomLog log/xxx.idv.tw-access_log common
    </VirtualHost>

    <VirtualHost xxx.xxx.xxx.xxx:80>
    ServerAdmin [email protected]
    DocumentRoot /xxx/def
    ServerName def.xxx.idv.tw
    ErrorLog logf/xxx.idv.tw-error_log
    CustomLog log/xxx.idv.tw-access_log common
    </VirtualHost>

類似的主題

  1. 【問題】有使用HOST.SK的朋友
    作者:moritaka 所在討論版:☉ -- 虛 擬 主 機 討 論 版
    回覆: 17
    最後發表: 2002-05-13, 06:37 PM
  2. 【求助】host.sk 安裝vbb2.2.2的問題
    作者:kengy 所在討論版:☉ -- 虛 擬 主 機 討 論 版
    回覆: 3
    最後發表: 2002-03-04, 01:28 PM
  3. 【求助】Name Virtual Host 問題? SOS
    作者:itppl 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 4
    最後發表: 2002-02-22, 05:53 AM

 

此網頁沒有從搜尋引擎而來的訪客

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •