linux環境下Apache+Resin的配置

來源:互聯網
上載者:User

Apache安裝配置
tar xvzf httpd* //解壓源碼包
cd httpd* //進入安裝目錄
/configure --prefix=/usr/local/apache2 --enable-so //進行編譯
//--enable-so根據apache的版本不同可能不同,請用--help參數查看可用的選項
make
make install //安裝

修改conf/httpd.conf進行HTTP配置

Resin安裝配置
tar zxvf resin* //解壓源碼包
cd resin* //進入安裝目錄
./configure --with-apxs=$Apache2_home/bin/apxs ... //進行編譯,可以用--help參數查看可用的選項
make
make install //安裝

此時已經產生Resin串連Apache2的.so檔案了,其存在與$Apache2_home/modules/mod_caucho.so

修改conf/httpd.conf進行HTTP配置
     LoadModule caucho_modules modules/mod_caucho.so
     ResinConfigServer localhost 6802
     <location /caucho-status>
          sethandler caucho-status
     </location>

修改$resin_home/conf/resin.conf中的
<web-app id='/' document-directory="/webapps/ROOT"/>
把webapps/ROOT改成Apache的httpd.conf設定檔document ROOT所對應的目錄

分別先後啟動Resin和Apache

訪問http://hostname/caucho-status 可以看到Resin的狀態頁面

相關文章

聯繫我們

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