|
![]() |
![]() Resin provides a fast servlet runner for Apache, allowing Apache to run servlets and JSP files. ![]()
To configure Apache to load the Caucho Server Runner, add the following lines to the Apache httpd.conf file:
Note: The caucho-status is optional and probably should be avoided in a production site. It lets you ask the Caucho Apache module about the Caucho status, valuable for debugging. Alternate Apache ConfigurationYou can also configure Apache directly, instead of letting Caucho read configuration from the resin.conf file. If you use this method, you need to make sure you match the Apache configuration with the Resin configuration.
Load BalancingIn Resin 1.1, you can distribute requests to multiple machines. All requests in a session will go to the same host. In addition, if one host goes down, Resin will send the request to the next available machine.
Connection ReuseConnection reuse is not yet available on Windows.Error PageWhen mod_caucho can't reach any JVM, it will send a default error page. Sites can customize the error page with the directive.
By default, Resin will look in resin1.1/doc for JSP files and resin1.1/doc/WEB-INF/classes for servlets and beans. To tell Resin to use Apache's document area, you configure the . Change from 'doc' to something like '/usr/local/apache/htdocs'.
Now you need to start the servlet engine. From the resin1.1/bin folder, click on srun.
Now browse http://localhost/test.jsp. You should get a 'file not found' message. Create a test file '/usr/local/apache/htdocs/test.jsp'
Browse http://localhost/test.jsp again. You should now get
The Servlet Runner can be installed as an NT service. To install the service, use
To remove the service, use
You will either need to reboot the machine or start the service from the Control Panel/Services panel to start the server. On a machine reboot, NT will automatically start the servlet runner.
|