I fixed the forgotten jetty server not obeying the `SERVERHOST` setting. If you want to restrict the BaseXHTTP server, you should update to the latest revision in git.
--
Jens Erat
[phone]: tel:+49-151-56961126
[mail]: mailto:email@jenserat.de
[jabber]: xmpp:jabber@jenserat.de
[web]:
http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 03.10.2011 um 23:07 schrieb Ralf Jung:
> Hi Jens,
>
> thanks!
> The patch does not seem to affect all the ports that are opened though...
> "netstat -nlp" shows:
>
> tcp6 0 0 :::8984 :::* LISTEN
> 21565/java
> tcp6 0 0 :::8985 :::* LISTEN
> 21565/java
> tcp6 0 0 127.0.0.1:1984 :::* LISTEN
> 21565/java
> tcp6 0 0 127.0.0.1:1985 :::* LISTEN
> 21565/java
>
> So, the actual server and events stuff is local, but REST and... something...
> is not.
>
> Kind regards,
> Ralf
>
> On Monday 03 October 2011 14:05:45 Jens Erat wrote:
>> Hi Loke, hi Ralf,
>>
>> BaseX missed the possibility to bind the server to a hostname. Christian
>> just merged my tweak to add this. Feel free to pull the current developer
>> version from [github][1]! The tweak will also be included in this month's
>> expected 6.8 release.
>>
>> Regards from Lake Constance,
>> Jens
>>
>> [1]:
https://github.com/BaseXdb/basex
>>
>>> Hi,
>>>
>>> yes, I already looked for that same feature and could not find it yet.
>>> For security reasons, I don't want anyone outside of the server machine
>>> to be able to connect to BaseX, Jetty should listen for incoming
>>> connections on localhost only.
>>> It is common for every server software to have such a configuration,
>>> somewhere. I assume that's what you are looking for, too, Loke?
>>>
>>> Kind regards,
>>> Ralf
>>>
>>> On Sunday 02 October 2011 23:18:43 developer loke wrote:
>>>> Hi Christian,
>>>> I have checked this page. It seems to contain no info about the
>>>> configuration variables themselves. Also, I have been able to connect
>>>> to the locally started server from a remote IP address, which will
>>>> happen only when a locally started server listens on all the ip
>>>> addresses. I would like to make it bind to a particular address like
>>>> MySQL and not have to worry about all the other IP addresses.
>>>>
>>>> Thanks
>>>> Loke
>>>>
>>>> On Mon, Oct 3, 2011 at 2:09 AM, Christian Grün
>>>>
>>>>
christian.gruen@gmail.com wrote:
>>>>> Hi Loke,
>>>>>
>>>>> thanks for requesting a Wiki account!
>>>>>
>>>>>>>> Hi. I am looking for options to configure the server as documented
>>>>>>>> in the Wiki, but I can not find .basex file anywhere, and there
>>>>>>>> seems to be no documentation on the Wiki.
>>>>>
>>>>> In addition to Jens' comments, you may check out the following Wiki
>>>>> page:
>>>>>
>>>>>
http://docs.basex.org/wiki/Configuration
>>>>>
>>>>>> I found the config files, but how do I bind the server to one ip
>>>>>> address, or to just localhost, because though I can see HOST =
>>>>>> localhost, I am still able to connect to it from different machines.
>>>>>
>>>>> The server can only be locally started, which is why there is no
>>>>> option for the server host. Instead, HOST is used by the client to
>>>>> connect to a default server; see:
>>>>>
>>>>>
http://docs.basex.org/wiki/Options
>>>>>
>>>>> Hope this helps,
>>>>> Christian
>>>>
>>>> _______________________________________________
>>>> BaseX-Talk mailing list
>>>> BaseX-Talk@mailman.uni-konstanz.de
>>>>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>>>
>>> _______________________________________________
>>> BaseX-Talk mailing list
>>> BaseX-Talk@mailman.uni-konstanz.de
>>>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk