[ejabberd] Configuration syntax while configuring mod_muc_log_http

Badlop badlop at gmail.com
Sun Jul 27 02:11:47 MSD 2008


On Sat, Jul 26, 2008 at 6:37 PM, Ladislav Andel <ladaan at iptel.org> wrote:
> when I want to access my logs from web
> browser I have following problem.
>
> I have configured the muc_log_http as above.
> If I look at http://example.org:5280/pub/muclogs  I get folder with name
> e.g.  testroom at example.org
> However, the path of the testroom at example.org is incorrect
> Should be http://example.org:5280/pub/muclogs/testroom@example.org
> but I get http://example.org:5280/pub/testroom@example.org
>
> Do you see the bug?

Your problem is in this sentence:

> If I look at http://example.org:5280/pub/muclogs

You didn't append the / to the dirname, hence the browser later
doesn't append the chatroom dir correctly.

The solution is simple: start to browse using this URL:
  http://example.org:5280/pub/muclogs/

This way, when the HTML includes this content:
  <a href='testroom at conference.example.org/'>testroom at conference.example.org/</a>
your browser will build the correct URL for the link:
  http://example.org:5280/pub/muclogs/testroom@conference.example.org/

---


More information about the ejabberd mailing list