重復容易,改變很難
          java,,,不錯的玩具
          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/出現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步編譯產生的默認端口,需根據自己要求修改
                
           (3) DirectoryIndex加入index.jsp   263行    
            設置默認訪問頁面    
                
           (4) 設置resin的web服務    
             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的服務地址
           
           以上6,7也可改為以下設置:
            或者將293行的標記作如下修改
            修改前
            <Directory />
                Options FollowSymLinks
                AllowOverride None
            </Directory>
            
            修改后
            <Directory />
                Options FollowSymLinks Includes
                AllowOverride None
            </Directory>
            apache會認為所有路徑下均可使用shtml的include功能
           
           apache的啟動:      
            cd /opt/apache/bin     
            啟動:apachectl start     
            停止:apachectl stop 
            重啟:apachectl restart 
            第一次重啟時會出現以下語句: 
             ./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
            此是正常的,以后重啟就不會出現了 

           用http://localhost:90/caucho-status可以查看apache和resin連接器的當前狀態  
           參考資料:  
            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 分享愛的空間 閱讀(783) 評論(1)  編輯  收藏

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

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


          網站導航:
           

          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(5)

          隨筆檔案

          文章檔案

          相冊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 天祝| 弋阳县| 武威市| 平和县| 华阴市| 沾化县| 南宫市| 朝阳市| 汨罗市| 杭锦后旗| 肇东市| 吐鲁番市| 承德县| 丰台区| 新宾| 谢通门县| 吴桥县| 永年县| 威宁| 龙州县| 罗定市| 凤阳县| 绥中县| 葵青区| 永州市| 五大连池市| 阳谷县| 崇礼县| 新田县| 乐东| 连江县| 盐边县| 搜索| 常山县| 黔西县| 出国| 邢台县| 林甸县| 巴彦县| 海林市| 鄂托克前旗|