Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
SMILA/Documentation/Enable Remote Access
< SMILA | Documentation
Revision as of 04:34, 15 February 2012 by Unnamed Poltroon (Talk) (→Enable HTTP remote access to SMILA by HTTP)
For security reasons, by default SMILA is configured to allow access to the HTTP and JMX servers only from the host SMILA is running on, i.e. using "localhost" adresses.
Enable HTTP remote access to SMILA by HTTP
There are two ways to change this:
- Edit SMILA.ini and add this line to make the SMILA HTTP server listen on all network interfaces of the host:
... -Djetty.host=0.0.0.0 ...
- Edit configuration/org.eclipse.smila.http.server/jetty.xml and edit the connector definition. E.g. remove the attribute default="localhost" for setting the "host" property to let it listen on all network interfaces:
... <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><SystemProperty name="jetty.host"/></Set> <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set> ...
More fine-grained control is possible using the jetty.xml configuration, of course. Consult the Jetty Manual for details.