Resin administration

From Resin 3.0

Revision as of 23:31, 2 October 2010 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Resin's administration page /resin-admin should generally be enabled for all Resin servers. For security, it's best to have /resin-admin available on a dedicated virtual host, a separate TCP port, so your admin will be protected by your firewall.

resin.xml for /resin-admin on port 8091

<resin xmlns="http://caucho.com/ns/resin"
     xmlns:resin="urn:java:com.caucho.resin">
 
  <cluster id="">
    <resin:import path="${__DIR__}/app-default.xml"/>

    <server-default>
      <http port="80"/>
      <http port="8091"/>
      <user-name>resin</user-name>
      <group-name>resin</group-name>
    </server-default>

    <server id="a" address="192.168.1.10" port"6800"/>

    <host id=""> 
      <web-app-deploy path="webapps"/>
    </host>

    <host id=":8091">

      <web-app id="/resin-admin" root-directory="${resin.root}/doc/admin">
        <prologue>
          <resin:set var="resin_admin_external" value="false"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
      </web-app>

     </host>
   </cluster>
 </resin>
  • The server listens to HTTP ports 80 and 8071
  • The server runs as the "resin" user instead of root
  • Applications are deployed to /var/www/webapps
  • The web-apps are served through the default virtual host
  • The resin-admin is served through the ":8091" virtual host
  • The /resin-admin web-app is in ${resin.root}/doc/admin
  • We've enabled non-localhost and non-SSL access to /resin-admin
Personal tools