Folks,
Until a couple hours ago I thought "jwchat" was the only port in my FreeBSD tree that I needed to install. But in googling around for some tutorial howto's, it's become clear that jwchat depends on other binaries. Like ejabberd, and down the line. While these things build, can someone clue me in on what I need to put in my apache configuration file? (As always, a sample/example [[file]] is worth a million words; or handwavng.)
Following is an abbreviation of what scrolled on my xterm after jwchat finished building and installing. With BSD, all web stuff is located within /usr/local/www--just FWIW.
I'm not quite sure what to put in the java config.js for SITENAME.
Should I stick with "localhost" or use the alias of my DNS server, "sage"? Or should I use the full name: "ns1.thought.org"?
I understand that IRC is out-of-date, but for me, I'd rather have a means of doing my own messaging stuff. thought.org has been around since '94; I've only run websites for 7, 8 years. It's time to offer some new services. Any help/clues will be much appreciated!
RE::
...
merci, danke, graci, thanks,
gary kline
I have this in my Apache
I have this in my Apache configuration:
And in /usr/local/www/data/jwchat/.htaccess I have this:
And in /usr/local/www/data/jwchat/config.js:
Note that you do not need your own Jabber server; you also can use a public server.
--
sander
Re-initialization? and test?
Appreciate the examples. I've replaced "sage.thought.org:5280" for the host:PORT name. Yes?/no? I've edited the *.cfg file in /usr/local/etc/ejabberd/ directory. Things look ready for testing. The next questions are what do I need to do to reinit everything? "ejabberd_enable="YES"" is set in /etc/rc.conf. It might be easiest to reboot, but that wouldn't help me understand how things work together.
http://sage.thought.org/http-poll ??
Lastly, how-to-test with my browser? Is the URL to get to jwchat:
gary
Re: Re-initialization? and test?
Appreciate the examples. I've replaced "sage.thought.org:5280" for the host:PORT name. Yes?/no?
EXAMPLE.ORG--> Jabber ID:user@EXAMPLE.ORG
The next questions are what do I need to do to reinit everything?
Use apachectl
"ejabberd_enable="YES"" is set in /etc/rc.conf. It might be easiest to reboot, but that wouldn't help me understand how things work together.
Lastly, how-to-test with my browser? Is the URL to get to jwchat:
http://sage.thought.org/http-poll??
No, if you have put jwchat into /usr/local/www/data/jwchat/ it will be available on something likehttp://example.org/jwchat/ depending on your Apache configuration.
404 err
For the past couple hours I've been unable to figure out why things are
failing. The necessary modules are in httpd.conf so things should be getting rewritten, but I keep getting "Not found" when I point to the chat URL. Ideas? In the jwchat port README are several lines of apache directives that I didn't add.
What am I doing wrong?
I remember that I had to
I remember that I had to make sure that the rewrite module for Apache is loaded...are you sure you have that module loaded?
--
sander
Re: I remember that I had to
I remember that I had to make sure that the rewrite module for Apache is loaded...are you sure you have that module loaded?
--
sander
As far as I can tell (from looking in httpd.conf, the mod_rewrite[.o]
is both added and loaded. --There were lines involving the proxy server that I uncommented. I reinitialized everything, but no luck.
Is there any way of tracing this? or posting part of my config files?
Yes, give all useful
Yes, give all useful information.
--
sander
Re: Yes, give all useful
Yes, give all useful information.
--
sander
This is in apache/httpd.conf:
[code]
AllowOverride All
[/code]
Following is /usr/local/www/jwchat.htaccess:
[code]
RewriteEngine Onhttp://sage.thought.org:5280/http-poll/ [P]
RewriteRule http-poll/
[/code]
And, same directory in config.js:
var SITENAME = "sage.thought.org"
var DEFAULTRESOURCE = "jwchat";
...
var BACKENDS =
[
{
name:"Native",
description:"Ejabberd's native HTTP Polling backend",
httpbase:"http-poll/",
type:"polling",
servers_allowed:[SITENAME]
},
];
I'm .LT. positive that I have the mod_rewrite stuff set up correctly. In the jwxhat port tree's README it mwntions a "RewriteRule"that I assume should be iin the apache httpd.conf or .htacess file:
RewriteRule http-poll/http://127.0.0.1:5280/http-poll/ [P]
But since 127.1 is "localhost", I don't see how this would work either.
Anyway, that's it. I hope that something jumps out at you!
gary
Re: Yes, give all useful
Following is /usr/local/www/jwchat.htaccess:
This probably needs to be /usr/local/www/data/jwchat/.htaccess
I have instead of "SITENAME", my domain. So in your case:
After that you should be able to see jwchat inhttp://sage.thought.org/jwchat/
two issues
I changed
servers_allowed:[SITENAME] to servers_allowed:['sage.thought.org'].
Same results. When I point mozilla athttp://sage.thought.org/jwchat
the first things that pop-up are the error dialogs with the strings:
"JID is missing\nAborting" and "Password is missing\nAborting"
which seems to mean that I am missing the name of (at least?) the name of a JWChat admin. So the first thing is: how-to resolve this missing JID/password issue? I understand that if *I* am the admin, my JID would be "kline@sage.thought.org/jwchat". Another thing is either howto get past this error OR how to set up at least one person to handle my JWChat page.
In short, I'm lost!
gary
You normally do not need the
You normally do not need the JID of an administrator. Just enter an existing Jabber ID and its password, or create a new account. Maybe you should contact the JWChat author, because this seems to be a JWChat (configuration) issue.
--
sander