Can't contact APE Server

209 views
Skip to first unread message

Alessandro Baldini

unread,
Jun 15, 2012, 11:18:16 AM6/15/12
to APE Project
Hi,
i have a dedicated server and i could installing APE Server.

I buy a domain: www.dominio.it

My configuration for APE are:

In the /etc/apache2/sites-available/default i added:

<VirtualHost *>
ServerName dominio.it
ServerAlias ape.dominio.it
ServerAlias *.ape.dominio.it

DocumentRoot "/var/www/dominio.it/httpdocs/"
</VirtualHost>

In the config.js i insert:

APE.Config.baseUrl = 'http://www.dominio.it/APE_JSF'; //APE JSF
APE.Config.domain = 'dominio.it';
APE.Config.server = 'ape.dominio.it:6969'; //APE server URL

In the ape.conf i insert:

Server {
port = 6969
daemon = yes
ip_listen = 0.0.0.0
ip_local = 127.0.0.1
domain = auto
rlimit_nofile = 10000
pid_file = /var/run/aped.pid
}

Despite these configurations, the test continues to give me the
following error:

Can't contact APE Server.Please check the folowing url is pointing to
your APE server : http://0.ape.dominio.it:6969

What should I do to fix the problem?

Thank's all

Pablo Tejada

unread,
Jun 15, 2012, 11:32:55 AM6/15/12
to ape-p...@googlegroups.com
It may be common sense but did you checked that the folowing url is pointing to your APE server : http://0.ape.dominio.it:6969

Sent from my iPhone

Alessandro Baldini

unread,
Jun 15, 2012, 11:41:26 AM6/15/12
to ape-p...@googlegroups.com
How can I check?


2012/6/15 Pablo Tejada <ptej...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

alberto Villa

unread,
Jun 15, 2012, 11:41:43 AM6/15/12
to ape-p...@googlegroups.com
Try using this configuration for ape.conf:

Server {
port = 6969
daemon = yes
ip_listen = 0.0.0.0
ip_local = 127.0.0.1
domain = 'dominio.it'
rlimit_nofile = 10000
pid_file = /var/run/aped.pid
}

If I'm not wrong the doman value must have the same value in the two
config file.

--
Dr. Villa Alberto
Sw Engineer

SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.v...@seletech.com
web: www.seletech.com
www.seletech.eu

alberto Villa

unread,
Jun 15, 2012, 11:45:48 AM6/15/12
to ape-p...@googlegroups.com
Il 15/06/2012 17:18, Alessandro Baldini ha scritto:
You have to set up the DNS service as well: you can either set up
/etc/hosts like follows:

0.ape.dominio.it
1.ape.dominio.it
...
n.ape.dominio.it

or configure properly a DNS service

Jonathon Byrd

unread,
Jun 15, 2012, 12:01:42 PM6/15/12
to ape-p...@googlegroups.com
also check to see that port 6969 is open after you start the ape server. use a tool like this  http://ping-the-server.com/ 

--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to

Alessandro Baldini

unread,
Jun 15, 2012, 4:55:42 PM6/15/12
to ape-p...@googlegroups.com
Hi,
i have insert in the /etc/hosts the follow lines:

127.0.0.1 0.ape.dominio.it

but the problem persist! Why???

PS Alberto, il you are italian could speak italian....i am of Milan and my english is very bad!

2012/6/15 alberto Villa <a.v...@seletech.com>

Alessandro Baldini

unread,
Jun 15, 2012, 4:56:27 PM6/15/12
to ape-p...@googlegroups.com
Thank you, but i used the tool and the port 6969 is open....

2012/6/15 Jonathon Byrd <jona...@redrokk.com>

Jonathon Byrd

unread,
Jun 15, 2012, 5:00:56 PM6/15/12
to ape-p...@googlegroups.com
inserting it in your hosts file is a fail. your server needs to know how to handle that alias as well as your local computer. Even entering it in the hosts file of your server will not work. 

You need to locate the /etc/httpd/conf/httpd.conf file that's responsible for apache directing traffic to the proper directory on your server. Once done then you can add the wildcard alias to your apache config.

Alessandro Baldini

unread,
Jun 15, 2012, 5:07:55 PM6/15/12
to ape-p...@googlegroups.com
in my server the httpd.conf is located in /etc/apache2. Is correct? And the file is empty....What should i write? Can you give me an example?

2012/6/15 Jonathon Byrd <jona...@redrokk.com>

Ronnie Visser

unread,
Jun 15, 2012, 5:11:50 PM6/15/12
to ape-p...@googlegroups.com
I have also posted a message about this with dns settings example but then running on port 80

Verstuurd vanaf mijn iPhone

Jonathon Byrd

unread,
Jun 15, 2012, 5:14:56 PM6/15/12
to ape-p...@googlegroups.com
Then you're probably running debian or ubuntu, that correct? You'll want to look int the /etc/apache2/sites folder.

Once you find it you'll need to run the command on your server to enable that site, i think it's something like a2ensite your_site_name

then restart apache.

Alessandro Baldini

unread,
Jun 15, 2012, 5:25:44 PM6/15/12
to ape-p...@googlegroups.com
Yes, is Ubuntu!
if i go in /etc/apache2 and run ls:

apache2.conf
httpd.conf
mods-available
sites-available
conf.d
httpd.pem
mods-enabled
sites-enabled
envvars
magic
ports.conf
workers.properties



2012/6/15 Jonathon Byrd <jona...@redrokk.com>

Jonathon Byrd

unread,
Jun 15, 2012, 5:28:36 PM6/15/12
to ape-p...@googlegroups.com
in  sites-available  you'll find all of your sites, run ls inside  sites-available folder

Alessandro Baldini

unread,
Jun 15, 2012, 5:30:21 PM6/15/12
to ape-p...@googlegroups.com
in this folder there is

default


2012/6/15 Jonathon Byrd <jona...@redrokk.com>

Jonathon Byrd

unread,
Jun 15, 2012, 5:43:35 PM6/15/12
to ape-p...@googlegroups.com
run that file in your favorite editor and add this line 

ServerAlias  *.dominio.it

under ServerName  www.dominio.it

then run 

$ /etc/init.d/apache2 restart

Alessandro Baldini

unread,
Jun 15, 2012, 5:51:46 PM6/15/12
to ape-p...@googlegroups.com
:( Nothing! Does not work!

This is the content the file with your instruction:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

ServerName www.dominio.it
ServerAlias *.dominio.it

</VirtualHost>


2012/6/15 Jonathon Byrd <jona...@redrokk.com>

--

Jonathon Byrd

unread,
Jun 15, 2012, 6:14:09 PM6/15/12
to ape-p...@googlegroups.com
add 1.dominio.it to your local computers hosts file and then access it via the browser, let me know if that works. if you see anything about the ape running.

Alessandro Baldini

unread,
Jun 15, 2012, 6:25:52 PM6/15/12
to ape-p...@googlegroups.com
this is my hosts with the new instruction:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1    localhost.localdomain\localhost  localhost
127.0.0.1    0.ape.dominio.it
127.0.0.1    1.dominio.it

....nothing! Do not work!

PS: The APE server is on the dedicated server....not in local......


2012/6/16 Jonathon Byrd <jona...@redrokk.com>

Jonathon Byrd

unread,
Jun 16, 2012, 12:15:54 PM6/16/12
to ape-p...@googlegroups.com
What you're showing me is the hosts file on your dedicated. You need to update the hosts file on your local computer, the computer which you are accessing the server via browser. You can either update your local hosts file (not the server) or update the dns cname to point a wildcard char to your dedicated server.

I tell you what, I'll write a blog post discussing this process from start to finish. Will let you know when it's done.

Jonathon Byrd

unread,
Jun 16, 2012, 2:50:01 PM6/16/12
to ape-p...@googlegroups.com
I've literally spent the last few hours re-installing APE on one of my servers and creating this tutorial for you.


I'll be preparing the next tutorial for you so that you can begin setting up APE on your website.

Jonathon Byrd

unread,
Jun 16, 2012, 3:30:19 PM6/16/12
to ape-p...@googlegroups.com
Ok, the Client tutorial was quite a bit easier. Here's that tutorial:


Good Luck!

alberto Villa

unread,
Jun 18, 2012, 2:37:16 AM6/18/12
to ape-p...@googlegroups.com
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Jonathon is right, you have to set up properly the host names resolution on the client you are trying to access APE server (int /etc/hosts, but it's a dummy workaround) or in the httpd.conf file on your dedicated host.

PS: I'm italian too! I'm from Monza ^_^ ..We could speak italian, but if we get to a solution speaking in italian, many people who subscribed to this group trying to solve the same problem wouldn't be able to understand ^_^ ..and by the way, my english isn't so good too..!

alberto Villa

unread,
Jun 18, 2012, 3:26:18 AM6/18/12
to ape-p...@googlegroups.com
Il 16/06/2012 21:30, Jonathon Byrd ha scritto:
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
That's ok Jonathon, but you'll need to set up a DNS server anyway or you'll cannot resolve the name "dominio.com" from any client..as far as I can understand the interaction between the APE server and the client is done using names instead of addresses, so even if I set up the correct lines to resolve  "*.dominio.com" in httpd.conf I woudn't be able to resolve it from a generic client. That's what I understood by spending some time in APE's configuration issues, let me know if I'm wrong, thank you in advance!
Reply all
Reply to author
Forward
0 new messages