apache開啟多連接埠

來源:互聯網
上載者:User

網上資源很多,同時也很雜,很多時候並不完全符合我們的要求,浪費時間。

應該有兩種方式:1.直接修改httpd.conf

        2.開啟虛擬連接埠:修改httpd-vhosts.conf檔案內容

我這裡採用第二種:比較簡單分三步

1.在httpd.conf中添加新的監聽連接埠:Listen 8887

2.  # Virtual hosts

  #虛擬機器主機 開啟多連接埠 原先是注釋掉的

  Include conf/extra/httpd-vhosts.conf

3.修改httpd-vhosts.conf內容,注意此檔案的路徑。

   新增如下內容:

<VirtualHost *:8887>    ServerAdmin webmaster@dummy-host.localhost   DocumentRoot "D:\Apache Software Foundation\apache-tomcat-6.0.33\webapps2"   ServerName localhost   ServerAlias localhost   ErrorLog "logs/dummy-host.localhost-error.log"   CustomLog "logs/dummy-host.localhost-access.log" common   <Directory "D:\Apache Software Foundation\apache-tomcat-6.0.33\webapps2">     Options Indexes FollowSymLinks     AllowOverride None     Order allow,deny     Allow from all   </Directory> </VirtualHost>

轉自:http://www.cnblogs.com/biGpython/archive/2011/10/26/2225075.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.