You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ed Schaller (JIRA)" <ji...@apache.org> on 2012/12/11 06:45:21 UTC

[jira] [Updated] (FELIX-3811) http service should allow the interfaces bound to be configured

     [ https://issues.apache.org/jira/browse/FELIX-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ed Schaller updated FELIX-3811:
-------------------------------

    Attachment: httplite.bind.patch

Patch to allow configuration of bind address.
                
> http service should allow the interfaces bound to be configured
> ---------------------------------------------------------------
>
>                 Key: FELIX-3811
>                 URL: https://issues.apache.org/jira/browse/FELIX-3811
>             Project: Felix
>          Issue Type: Wish
>          Components: Lightweight HTTP Service
>            Reporter: Ed Schaller
>            Priority: Minor
>              Labels: patch
>         Attachments: httplite.bind.patch
>
>
> As I primarily use the lightweight http service to debug using the webconsole it would be nice to only bind it to the local interface to limit access to the webconsole. This could be done by providing a configuration paramater to specify the host address to bind to and could also be useful for those running lightweight http on multihomed hosts.
> I have created a patch against 0.1.5-SNAPSHOT that includes such functionality. It uses org.apache.felix.http.host as the configuration key but this could be changed. The semantics of what should be done when the host specified cannot be resolved (eg: InetAddress.getByName() fails) may also be worth changing. Presently it just binds to all interfaces if it is unable to resolve/parse the address. Failing closed would be better in my opinion but might not be the most intuitive.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira