ejabberd - Comments for "problem connecting my domain name to web" https://www.ejabberd.im/node/4044 en ok https://www.ejabberd.im/node/4044#comment-55723 <p>so i have done that then i run live .</p> <p>it shows this</p> <p> Starting ejabberd in live mode...<br /> --------------------------------------------------------------------</p> <p>IMPORTANT: ejabberd is going to start in LIVE (interactive) mode.<br /> All log messages will be shown in the command shell.<br /> You can interact with the ejabberd node if you know how to use it.<br /> Please be extremely cautious with your actions,<br /> and exit immediately if you are not completely sure.</p> <p>To exit this LIVE mode and stop ejabberd, press:<br /> q(). and press the Enter key</p> <p>--------------------------------------------------------------------<br /> Press any key to continue</p> <p>Eshell V5.6.4 (abort with ^G)<br /> (ejabberd@Darkhack)1&gt;<br /> =ERROR REPORT==== 9-May-2010::03:49:10 ===<br /> C(&lt;0.241.0&gt;:ejabberd_captcha:331) : The option captcha_cmd is not configured, bu<br /> t some module wants to use the CAPTCHA feature.<br /> (ejabberd@Darkhack)1&gt;<br /> =INFO REPORT==== 9-May-2010::03:49:35 ===<br /> I(&lt;0.41.0&gt;:ejabberd_app:199) : Adding machine's DNS IPs to Erlang system:<br /> [{192,168,1,254}]<br /> (ejabberd@Darkhack)1&gt;<br /> =INFO REPORT==== 9-May-2010::03:49:59 ===<br /> I(&lt;0.41.0&gt;:ejabberd_app:69) : ejabberd 2.1.3 is started in the node ejabberd@Dar<br /> khack<br /> (ejabberd@Darkhack)1&gt;</p> <p>what do i do? my setting are:</p> <p>%%%<br /> %%% ejabberd configuration file<br /> %%%</p> <p>%%% The parameters used in this configuration file are explained in more detail<br /> %%% in the ejabberd Installation and Operation Guide.<br /> %%% Please consult the Guide in case of doubts, it is included in<br /> %%% your copy of ejabberd, and is also available online at<br /> %%% <noindex><a href="http://www.process-one.net/en/ejabberd/docs/" title="http://www.process-one.net/en/ejabberd/docs/" rel="nofollow" >http://www.process-one.net/en/ejabberd/docs/</a></noindex></p> <p>%%% This configuration file contains Erlang terms.<br /> %%% In case you want to understand the syntax, here are the concepts:<br /> %%%<br /> %%% - The character to comment a line is %<br /> %%%<br /> %%% - Each term ends in a dot, for example:<br /> %%% override_global.<br /> %%%<br /> %%% - A tuple has a fixed definition, its elements are<br /> %%% enclosed in {}, and separated with commas:<br /> %%% {loglevel, 4}.<br /> %%%<br /> %%% - A list can have as many elements as you want,<br /> %%% and is enclosed in [], for example:<br /> %%% [http_poll, web_admin, tls]<br /> %%%<br /> %%% - A keyword of ejabberd is a word in lowercase.<br /> %%% The strings are enclosed in "" and can have spaces, dots...<br /> %%% {language, "en"}.<br /> %%% {ldap_rootdn, "dc=example,dc=com"}.<br /> %%%<br /> %%% - This term includes a tuple, a keyword, a list and two strings:<br /> %%% {hosts, ["jabber.example.net", "im.example.com"]}.<br /> %%%</p> <p>%%% =======================<br /> %%% OVERRIDE STORED OPTIONS</p> <p>%%<br /> %% Override the old values stored in the database.<br /> %%</p> <p>%%<br /> %% Override global options (shared by all ejabberd nodes in a cluster).<br /> %%<br /> %%override_global.</p> <p>%%<br /> %% Override local options (specific for this particular ejabberd node).<br /> %%<br /> %%override_local.</p> <p>%%<br /> %% Remove the Access Control Lists before new ones are added.<br /> %%<br /> %%override_acls.</p> <p>%%% =========<br /> %%% DEBUGGING</p> <p>%%<br /> %% loglevel: Verbosity of log files generated by ejabberd.<br /> %% 0: No ejabberd log at all (not recommended)<br /> %% 1: Critical<br /> %% 2: Error<br /> %% 3: Warning<br /> %% 4: Info<br /> %% 5: Debug<br /> %%<br /> {loglevel, 4}.</p> <p>%%<br /> %% watchdog_admins: If an ejabberd process consumes too much memory,<br /> %% send live notifications to those Jabber accounts.<br /> %%<br /> %%{watchdog_admins, ["admin@bluejabber.co.uk"]}.</p> <p>%%% ================<br /> %%% SERVED HOSTNAMES</p> <p>%%<br /> %% hosts: Domains served by ejabberd.<br /> %% You can define one or several, for example:<br /> %% {hosts, ["example.net", "example.com", "example.org"]}.<br /> %%<br /> {hosts, ["localhost"]}.</p> <p>%%<br /> %% route_subdomains: Delegate subdomains to other Jabber server.<br /> %% For example, if this ejabberd serves example.org and you want<br /> %% to allow communication with a Jabber server called im.example.org.<br /> %%<br /> %%{route_subdomains, s2s}.</p> <p>%%% ===============<br /> %%% LISTENING PORTS</p> <p>%%<br /> %% listen: Which ports will ejabberd listen, which service handles it<br /> %% and what options to start it with.<br /> %%<br /> {listen,<br /> [</p> <p> {5222, ejabberd_c2s, [<br /> {certfile, "C:\\Program Files\\ejabberd-2.1.3\\conf\\server.pem"}, starttls,<br /> {access, c2s},<br /> {shaper, c2s_shaper},<br /> {max_stanza_size, 65536}<br /> ]},</p> <p> %%<br /> %% To enable the old SSL connection method in port 5223:<br /> %%<br /> %%{5223, ejabberd_c2s, [<br /> %% {certfile, "C:\\Program Files\\ejabberd-2.1.3\\conf\\server.pem"}, tls,<br /> %% {access, c2s},<br /> %% {shaper, c2s_shaper},<br /> %% {max_stanza_size, 65536}<br /> %% ]},</p> <p> {5269, ejabberd_s2s_in, [<br /> {shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},</p> <p> %%<br /> %% ejabberd_service: Interact with external components (transports...)<br /> %%<br /> %%{8888, ejabberd_service, [<br /> %% {access, all},<br /> %% {shaper_rule, fast},<br /> %% {ip, {127, 0, 0, 1}},<br /> %% {hosts, ["icq.example.org", "sms.example.org"],<br /> %% [{password, "secret"}]<br /> %% }<br /> %% ]},</p> <p> {5280, ejabberd_http, [<br /> %%{request_handlers, [<br /> %% {["web"], mod_http_fileserver}<br /> %%]},<br /> captcha,<br /> http_bind,<br /> http_poll,<br /> web_admin<br /> ]}</p> <p> ]}.</p> <p>%%<br /> %% s2s_use_starttls: Enable STARTTLS + Dialback for S2S connections.<br /> %% Allowed values are: true or false.<br /> %% You must specify a certificate file.<br /> %%<br /> %%{s2s_use_starttls, true}.</p> <p>%%<br /> %% s2s_certfile: Specify a certificate file.<br /> %%<br /> %%{s2s_certfile, "C:\\Program Files\\ejabberd-2.1.3\\conf\\server.pem"}.</p> <p>%%<br /> %% domain_certfile: Specify a different certificate for each served hostname.<br /> %%<br /> %%{domain_certfile, "example.org", "C:\\Program Files\\ejabberd-2.1.3\\conf\\example_org.pem"}.<br /> %%{domain_certfile, "example.com", "C:\\Program Files\\ejabberd-2.1.3\\conf\\example_com.pem"}.</p> <p>%%<br /> %% S2S whitelist or blacklist<br /> %%<br /> %% Default s2s policy for undefined hosts.<br /> %%<br /> %%{s2s_default_policy, allow}.</p> <p>%%<br /> %% Allow or deny communication with specific servers.<br /> %%<br /> %%{{s2s_host, "goodhost.org"}, allow}.<br /> %%{{s2s_host, "badhost.org"}, deny}.</p> <p>%%% ==============<br /> %%% AUTHENTICATION</p> <p>%%<br /> %% auth_method: Method used to authenticate the users.<br /> %% The default method is the internal.<br /> %% If you want to use a different method,<br /> %% comment this line and enable the correct ones.<br /> %%<br /> {auth_method, internal}.</p> <p>%%<br /> %% Authentication using external script<br /> %% Make sure the script is executable by ejabberd.<br /> %%<br /> %%{auth_method, external}.<br /> %%{extauth_program, "\\path\\to\\authentication\\script"}.</p> <p>%%<br /> %% Authentication using ODBC<br /> %% Remember to setup a database in the next section.<br /> %%<br /> %%{auth_method, odbc}.</p> <p>%%<br /> %% Authentication using PAM<br /> %%<br /> %%{auth_method, pam}.<br /> %%{pam_service, "pamservicename"}.</p> <p>%%<br /> %% Authentication using LDAP<br /> %%<br /> %%{auth_method, ldap}.<br /> %%<br /> %% List of LDAP servers:<br /> %%{ldap_servers, ["bluejabber.co.uk"]}.<br /> %%<br /> %% LDAP attribute that holds user ID:<br /> %%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.<br /> %%<br /> %% Search base of LDAP directory:<br /> %%{ldap_base, "dc=example,dc=com"}.<br /> %%<br /> %% LDAP manager:<br /> %%{ldap_rootdn, "dc=example,dc=com"}.<br /> %%<br /> %% Password to LDAP manager:<br /> %%{ldap_password, "******"}. </p> <p>%%<br /> %% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon | login_anon | both<br /> %% allow_multiple_connections: true | false<br /> %%<br /> %%{host_config, "public.example.org", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %%<br /> %% To use both anonymous and internal authentication:<br /> %%<br /> %%{host_config, "public.example.org", [{auth_method, [internal, anonymous]}]}.</p> <p>%%% ==============<br /> %%% DATABASE SETUP</p> <p>%% ejabberd uses by default the internal Mnesia database,<br /> %% so you can avoid this section.<br /> %% This section provides configuration examples in case<br /> %% you want to use other database backends.<br /> %% Please consult the ejabberd Guide for details about database creation.</p> <p>%%<br /> %% MySQL server:<br /> %%<br /> %%{odbc_server, {mysql, "server", "database", "username", "password"}}.<br /> %%<br /> %% If you want to specify the port:<br /> %%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.</p> <p>%%<br /> %% PostgreSQL server:<br /> %%<br /> %%{odbc_server, {pgsql, "server", "database", "username", "password"}}.<br /> %%<br /> %% If you want to specify the port:<br /> %%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.<br /> %%<br /> %% If you use PostgreSQL, have a large database, and need a<br /> %% faster but inexact replacement for "select count(*) from users"<br /> %%<br /> %%{pgsql_users_number_estimate, true}.</p> <p>%%<br /> %% ODBC compatible or MSSQL server:<br /> %%<br /> %%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>%%% ===============<br /> %%% TRAFFIC SHAPERS</p> <p>%%<br /> %% The "normal" shaper limits traffic speed to 1.000 B/s<br /> %%<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>%%<br /> %% The "fast" shaper limits traffic speed to 50.000 B/s<br /> %%<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>%%% ====================<br /> %%% ACCESS CONTROL LISTS</p> <p>%%<br /> %% The 'admin' ACL grants administrative privileges to Jabber accounts.<br /> %% You can put as many accounts as you want.<br /> %%<br /> {acl, admin, {user, "marcus", "bluejabber.co.uk"}}.</p> <p>%%<br /> %% Blocked users<br /> %%<br /> %%{acl, blocked, {user, "baduser", "example.org"}}.<br /> %%{acl, blocked, {user, "test"}}.</p> <p>%%<br /> %% Local users: don't modify this line.<br /> %%<br /> {acl, local, {user_regexp, ""}}.</p> <p>%%<br /> %% More examples of ACLs<br /> %%<br /> %%{acl, jabberorg, {server, "jabber.org"}}.<br /> %%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %%{acl, test, {user_regexp, "^test"}}.<br /> %%{acl, test, {user_glob, "test*"}}.</p> <p>%%% ============<br /> %%% ACCESS RULES</p> <p>%% Define the maximum number of time a single user is allowed to connect:<br /> {access, max_user_sessions, [{10, all}]}.</p> <p>%% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>%% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>%% For all users except admins used "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>%% For all S2S connections used "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>%% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>%% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>%% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>%% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.<br /> {access, muc_create, [{allow, local}]}.</p> <p>%% In-band registration<br /> {access, register, [{allow, all}]}.</p> <p>%% Everybody can create pubsub nodes<br /> {access, pubsub_createnode, [{allow, local}]}.</p> <p>%%% ================<br /> %%% DEFAULT LANGUAGE</p> <p>%%<br /> %% language: Default language used for server messages.<br /> %%<br /> {language, "en"}.</p> <p>%%% =======<br /> %%% CAPTCHA</p> <p>%%<br /> %% Full path to a script that generates the image.<br /> %%<br /> %%{captcha_cmd, "C:\\Program Files\\ejabberd-2.1.3\\priv/bin/captcha.sh"}.</p> <p>%%<br /> %% Host part of the URL sent to the user.<br /> %%<br /> %%{captcha_host, "localhost:5280"}.</p> <p>%%% =======<br /> %%% MODULES</p> <p>%%<br /> %% Modules enabled in all ejabberd virtual hosts.<br /> %%<br /> {modules,<br /> [<br /> {mod_adhoc, []},<br /> {mod_announce, [{access, announce}]}, % requires mod_adhoc<br /> {mod_caps, []},<br /> {mod_configure,[]}, % requires mod_adhoc<br /> {mod_disco, []},<br /> %%{mod_echo, [{host, "echo.localhost"}]},<br /> {mod_http_bind,[]},<br /> %%{mod_http_fileserver, [<br /> %% {docroot, "C:\\Program Files\\ejabberd-2.1.3\\www"},<br /> %% {accesslog, "C:\\\\Program Files\\\\ejabberd-2.1.3\\\\www\\webaccess.log"},<br /> %% {content_types, [{".htm", "text/html"}]},<br /> %% {directory_indices, ["index.html", "index.htm"]}<br /> %%]},<br /> {mod_irc, []},<br /> {mod_last, []},<br /> {mod_muc, [<br /> %%{host, "conference.@HOST@"},<br /> {access, muc},<br /> {access_create, muc_create},<br /> {access_persistent, muc_create},<br /> {access_admin, muc_admin}<br /> ]},<br /> %%{mod_muc_log,[]},<br /> {mod_offline, []},<br /> {mod_privacy, []},<br /> {mod_private, []},<br /> %%{mod_proxy65,[]},<br /> {mod_pubsub, [ % requires mod_caps<br /> {access_createnode, pubsub_createnode},<br /> {ignore_pep_from_offline, true},<br /> {last_item_cache, false},<br /> {plugins, ["flat", "hometree", "pep"]}<br /> ]},<br /> {mod_register, [<br /> %%<br /> %% After successful registration, the user receives<br /> %% a message with this subject and body.<br /> %%<br /> {welcome_message, {"Welcome!",<br /> "Welcome to this Jabber server."}},</p> <p> %%<br /> %% When a user registers, send a notification to<br /> %% these Jabber accounts.<br /> %%<br /> %%{registration_watchers, ["admin1@example.org"]},</p> <p> {access, register}<br /> ]},<br /> {mod_roster, []},<br /> %%{mod_service_log,[]},<br /> {mod_shared_roster,[]},<br /> %%{mod_stats, []},<br /> {mod_time, []},<br /> {mod_vcard, []},<br /> {mod_version, []}<br /> ]}.</p> <p>%%% $Id: ejabberd.cfg.example 1073 2007-12-17 11:03:22Z badlop $</p> <p>%%% Local Variables:<br /> %%% mode: erlang<br /> %%% End:<br /> %%% vim: set filetype=erlang tabstop=8:</p> Sun, 09 May 2010 03:56:09 +0000 marcus1989 comment 55723 at https://www.ejabberd.im marcus1989 wrote: It uses my https://www.ejabberd.im/node/4044#comment-55718 <div class="quote-msg"> <div class="quote-author"><em>marcus1989</em> wrote:</div> <p>It uses my localhost example : ejabberd@localhost</p> <p>i type my user for example : marcus@startalk.co.uk</p></div> <p>You have in ejabberd.cfg a line like</p> <pre>{hosts, ["localhost"]}.</pre><p> Try to replace with</p> <pre>{hosts, ["startalk.co.uk"]}.</pre><p>Then create your new account in that vhost</p> Sat, 08 May 2010 11:24:35 +0000 mfoss comment 55718 at https://www.ejabberd.im