重復(fù)容易,改變很難
          java,,,不錯(cuò)的玩具
          posts - 21,  comments - 42,  trackbacks - 0

          apache + resin + shtml安裝步驟:  
           1,下載apache_1.3.37.tar.gz到/opt/apache_1.3.37 
           2, cd /opt/apache_1.3.37 
           3, 編譯apache 
            ./configure --prefix=/opt/apache --enable-module=so --enable-module=rewrite --enable-module=speling
            make
            make install
            將在/opt/出現(xiàn)apache

           4,編譯resin。   
            cd /opt/resin_test
            ./configure --with-apache=/opt/apache
            make
            make install


           5,修改apache配置文件     
            地址:/opt/apache/conf/httpd.conf    

           (1) 修改apache端口    
             236行 Port ** ->你要求的端口(如:90)   
                
           (2) 修改和resin的連接端口    
             951行: ResinConfigServer localhost 6820   
                6820是第4步編譯產(chǎn)生的默認(rèn)端口,需根據(jù)自己要求修改
                
           (3) DirectoryIndex加入index.jsp   263行    
            設(shè)置默認(rèn)訪問頁面    
                
           (4) 設(shè)置resin的web服務(wù)    
             283行  把DocumentRoot指向resin的webapp目錄(如:/opt/resin_test/doc)   
                
           (5) 配置SSI     
            取消以下注釋:  790行   
            #AddType text/html .shtml      
            #AddHandler server-parsed .shtml      
                 
           (6) 317行     
            Options Indexes FollowSymLinks MultiViews 增加Includes     
            改為:Options Indexes FollowSymLinks MultiViews Includes     
                 
           (7) 308行     
            將Directory的屬性改為     
             <Directory "/opt/resin_test/doc">    resin的服務(wù)地址
           
           以上6,7也可改為以下設(shè)置:
            或者將293行的標(biāo)記作如下修改
            修改前
            <Directory />
                Options FollowSymLinks
                AllowOverride None
            </Directory>
            
            修改后
            <Directory />
                Options FollowSymLinks Includes
                AllowOverride None
            </Directory>
            apache會認(rèn)為所有路徑下均可使用shtml的include功能
           
           apache的啟動(dòng):      
            cd /opt/apache/bin     
            啟動(dòng):apachectl start     
            停止:apachectl stop 
            重啟:apachectl restart 
            第一次重啟時(shí)會出現(xiàn)以下語句: 
             ./apachectl restart: httpd not running, trying to start
             [Thu Nov  2 15:57:19 2006] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
             ./apachectl restart: httpd started
            此是正常的,以后重啟就不會出現(xiàn)了 

           用http://localhost:90/caucho-status可以查看apache和resin連接器的當(dāng)前狀態(tài)  
           參考資料:  
            http://www.onlamp.com/catalog/apache/excerpt/ch10.html 
            http://support.microsoft.com/default.aspx?scid=kb%3Bzh-cn%3B203064 

          posted on 2007-05-25 12:48 分享愛的空間 閱讀(779) 評論(1)  編輯  收藏

          FeedBack:
          # re: 如何在resin服務(wù)器前配置Apache,使其能使用shtml功能
          2007-05-25 13:30 | kay
          搶沙發(fā),加油啊!  回復(fù)  更多評論
            

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(5)

          隨筆檔案

          文章檔案

          相冊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 牙克石市| 白银市| 自贡市| 门源| 乌什县| 江口县| 柘荣县| 涞水县| 东乡县| 屯门区| 卓资县| 舞钢市| 靖西县| 洪雅县| 苗栗县| 建昌县| 牙克石市| 阿克陶县| 丹东市| 汾西县| 阳曲县| 克拉玛依市| 深州市| 安吉县| 岱山县| 新竹市| 铜鼓县| 禄劝| 灌阳县| 亳州市| 梁河县| 调兵山市| 苍溪县| 化德县| 英山县| 朔州市| 张家口市| 宁武县| 翁源县| 广南县| 广汉市|