Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

49.2. Compiling mod_caucho.so

		
unix> ./configure --with-apxs=/usr/local/apache/bin/apxs
unix> make && make install
		
		

		
#
# mod_caucho Resin Configuration
#
LoadModule caucho_module /usr/local/apache/modules/mod_caucho.so
ResinConfigServer localhost 6802
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
<Location /caucho-status>
  SetHandler caucho-status
</Location>
		
		
		
<IfModule mod_caucho.c>
ResinConfigServer localhost 6802
<Location /caucho-status>
SetHandler caucho-status
</Location>
</IfModule>

AddHandler caucho-request jsp
<Location /servlet/*>
SetHandler caucho-request
</Location>


<IfModule mod_caucho.c>
	<LocationMatch (.*?)\.action>
		SetHandler caucho-request
	</LocationMatch>
	<LocationMatch (.*?)\.jsp>
		SetHandler caucho-request
	</LocationMatch>
	<LocationMatch (.*?)\.do>
		SetHandler caucho-request
	</LocationMatch>
</IfModule>