[ https://issues.apache.org/jira/browse/KARAF-3220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128443#comment-14128443
]
Achim Nierbeck commented on KARAF-3220:
---------------------------------------
Take a look at my blog post about this http://notizblog.nierbeck.de/2013/05/bind-certain-web-applications-to-specific-httpconnectors-ii/
> How to run webconsole with particular jetty connector
> -----------------------------------------------------
>
> Key: KARAF-3220
> URL: https://issues.apache.org/jira/browse/KARAF-3220
> Project: Karaf
> Issue Type: Question
> Components: karaf-webconsole
> Affects Versions: 3.0.0
> Reporter: Srikanth Hugar
> Priority: Critical
>
> I am using karaf 3.0.0 version for writting my REST services and i am installing webconsole
for managing the bundles.
> But by default webconsole runs in all the conntectors we specify in jetty.xml file. I
would like to run how to run webconsole with specific jetty connector.
> So that i can block the port and not provide access to webconsole outside dmz.
> I tried with approach
> org.osgi.service.http.port=9080
> could not help.
> Where can i find the information to achieve the same? Is it possible to run webconsole
in specific jetty connector.
> My connector as fallows:
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
> <Set name="host">
> <Property name="jetty.host" />
> </Set>
> <Set name="port">
> <Property name="jetty.port" default="8080" />
> </Set>
> ............................
> <Set name="name">http-user</Set>
> </New>
> </Arg>
> </Call>
>
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
> <Set name="host">
> <Property name="jetty.host" />
> </Set>
> <Set name="port">
> <Property name="jetty.port" default="9080" />
> </Set>
> .......................................................
> <Set name="name">http-admin</Set>
> </New>
> </Arg>
> </Call>
>
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
> <Arg>
> <New class="org.eclipse.jetty.http.ssl.SslContextFactory">
> ........................................
> </New>
> </Arg>
> <Set name="port">8081</Set>
> <Set name="maxIdleTime">30000</Set>
> <Set name="name">https-user</Set>
> </New>
> </Arg>
> </Call>
>
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
> <Arg>
> .......................................
> </New>
> </Arg>
> <Set name="port">9081</Set>
> <Set name="maxIdleTime">30000</Set>
> <Set name="name">https-admin</Set>
> </New>
> </Arg>
> </Call>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|