[Apache系列]怎樣在windows下配置apache vhost

來源:互聯網
上載者:User

標籤:

  1. 找到你的Apache安裝目錄,為小編的Apache安裝的目錄

  2. 2

    點擊conf檔案夾  進入配置目錄,找到httpd.conf 檔案,

  3. 3

    開啟httpd.conf 檔案,,

    找到地475行,

    或者ctr+f 尋找httpd-vhosts.conf  

    去掉前面的#

    ps: Include conf/extra/httpd-vhosts.conf(這指的是Apache安裝目錄下面的conf 檔案夾下面的extra下面的httpd-vhosts.conf檔案 ,如果你要更改目錄也可也,但必須指定正確的目錄)。

  4. 4

    找到 根據上一步你指定的檔案路徑 

  5. 5

    打卡httpd-vhosts.conf檔案  ,設定連接埠,預設為80連接埠不用修改,如果你的8連接埠其它程式佔用,請修改。

  6. 6

    虛擬機器主機的配置,詳見圖解

  7. 7

    重啟Apache。 開始—> 運行 —> cmd 輸入命令

    net stop  Apache2.2net start Apache2.2

  8.  

[Apache系列]怎樣在windows下配置apache vhost

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.