Page History
...
Javaクラスは様々なリソースのパスに基づき実行されます。仮想ホストのスクリプト要素はJavaクラスと特定のリソース・パスを関連付ける際に利用されます。trace属性はHTTPトランザクションのJSMトレースを可能にします。
httpd.xml
| Code Block |
|---|
<?xml version="1.0" encoding="UTF-8"?> <configuration> <instance name="WebServer" active="true" root="www/instance/htdocs" index="index.html"> <errorlog enabled="true" file="www/instance/logs/e rror.log"/> <accesslog enabled="true" file="www/instance/logs/a ccess.log"/> <listen port="4563" interface="*ALL" backlog="256" secure="false" store="pki/wwwssl.jks" password="password" buffersend="-1" bufferreceive="-1" nodelay="false" timeout="5"/> <access> <!-- Once a true condition occurs no more evaluations are done. <deny address="*"/> <deny address="10.2.1.45"/> <allow address="*"/> <allow address="10.2.1.45"/> --> </access> <mimetype> <!-- These are the default values. --> <map extension="png" type="image/png"/> <map extension="gif" type="image/gif"/> <map extension="jpg" type="image/jpeg"/> <map extension="jpeg" type="image/jpeg"/> <map extension="tiff" type="image/tiff"/> <map extension="ico" type="image/x-icon"/> <map extension="svg" type="image/svg+xml"/> <map extension="pdf" type="application/pdf"/> <map extension="css" type="text/css; charset=utf-8"/> <map extension="xsl" type="text/xls; charset=utf-8"/> <map extension="xml" type="text/xml; charset=utf-8"/> <map extension="htm" type="text/html; charset=utf-8"/> <map extension="html" type="text/html; charset=utf-8"/> <map extension="js" type="application/x-javascript; charset=utf-8"/> </mimetype> <virtual host="*" active="true"> <access> <!-- Once a true condition occurs no more evaluations are done. <deny address="*"/> <deny address="10.2.1"/> <deny address="10.2.1.45"/> <allow address="*"/> <allow address="10.2.1"/> <allow address="10.2.1.45"/> <deny useragent="*"/> <deny useragent="?"/> <deny useragent="edge"/> <deny useragent="opera"/> <deny useragent="chrome"/> <deny useragent="safari"/> <deny useragent="android"/> <deny useragent="firefox"/> <deny useragent="explorer"/> <deny useragent="imac"/> <deny useragent="ipad"/> <deny useragent="ipod"/> <deny useragent="iphone"/> <deny useragent="iwork"/> <deny useragent="msnbot"/> <deny useragent="lansaua"/> <deny useragent="yahoobot"/> <deny useragent="googlebot"/> <deny useragent="longreach"/> <allow useragent="*"/> <allow useragent="?"/> <allow useragent="edge"/> <allow useragent="opera"/> <allow useragent="chrome"/> <allow useragent="safari"/> <allow useragent="android"/> <allow useragent="firefox"/> <allow useragent="explorer"/> <allow useragent="imac"/> <allow useragent="ipad"/> <allow useragent="ipod"/> <allow useragent="iphone"/> <allow useragent="iwork"/> <allow useragent="msnbot"/> <allow useragent="lansaua"/> <allow useragent="yahoobot"/> <allow useragent="googlebot"/> <allow useragent="longreach"/> <deny contentlength="4096"/> Deny access if content length is greater than value <allow contentlength="4096"/> Allow access if content length less than or equal to <match urivalue Zero content length from the browser is a special case and access is allowed for no content connections --> <!-- The default is to allow access for all addresses, useragents and content lengths --> </access> <script> <match uri="/ping.jsp" class class="com.lansa.jsm.JSMHTTPServicePing" trace trace="false"/> <match uri <match uri="/" class class="com.lansa.jsm.JSMHTTPServiceFile" trace trace="false"> <parameter name <parameter name="cache.maxage" value="28800"/> <parameter name <parameter name="cache.maxage.pdf" value="28800"/> <parameter <parameter namename="cache.maxage.image" value value="28800"/> </match> </script> |
...
<mimetype>
<map extension="pdf" type="application/pdf"/>
<!--
Defaults to instance mimetype
-->
</mimetype>
</virtual>
</instance>
</configuration> |
カスタムの Java クラスを書いて、HTTP サーバーからの HTTP 要求を処理するには、Java クラスで com.lansa.jsm.JSMHTTPService のインターフェースが実装されていなければなりません。
...