重复容易,改变很难
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 分享爱的空间 阅读(759) 评论(1)  编辑  收藏

FeedBack:
# re: 如何在resin服务器前配置Apache,使其能使用shtml功能
2007-05-25 13:30 | kay
抢沙发,加油啊!  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 

<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(5)

随笔档案

文章档案

相册

搜索

  •  

最新评论

阅读排行榜

评论排行榜