Server APE OK (ip / url) but check tools not working

46 views
Skip to first unread message

XxX

unread,
Apr 24, 2015, 11:54:02 AM4/24/15
to ape-p...@googlegroups.com
Hi,

I'm sorry for my english but I have a problem with the testing tools.

I can reach this url : http://ape.sub.domain.dev:6969/, it's showing APE Server...
I can reach this ip : http://192.168.1.235:6969/ (it's working too, APE Server...)

But, when I run the testing tools, I've got an error :

Can't contact APE Server. Please check the your APE Server is running and the folowing url is pointing to your APE server : http://ape.sub.domain.dev:6969
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel


Do you have an idea what is my problem ?



My ape.conf

Server {
        port = 6969
        daemon = yes
        ip_listen = 192.168.1.235
        domain = domain.dev
        rlimit_nofile = 10000
        pid_file = /var/run/aped.pid
}

My config.js

APE.Config.baseUrl = 'https://sub.domain.dev/APE'; //APE JSF
APE.Config.domain = 'domain.dev';
APE.Config.server = 'ape.sub.domain.dev:6969'; //APE server URL

Windows & Ubuntu hosts !

192.168.1.235 sub.domain.dev
192.168.1.235 ape.sub.domain.dev
192.168.1.235 0.ape.sub.domain.dev
192.168.1.235 1.ape.sub.domain.dev
192.168.1.235 2.ape.sub.domain.dev
192.168.1.235 3.ape.sub.domain.dev
192.168.1.235 4.ape.sub.domain.dev

I'm working on a Virtual Machine (Ubuntu) on Windows.

Thank you for your help !
Sylvain

Sándor Volenszki

unread,
Apr 26, 2015, 12:48:20 PM4/26/15
to ape-p...@googlegroups.com
Hi, Iam not expert, but I seen a lot...

I am not sure,but the url-s in config.js a bit confusing.

First if you have vitul Ubuntu server and you setted up domain.dev host name, why don't use clear host name in the configuration?

So if you have domain.dev host name, than:

APE.Config.baseUrl = 'http://domain.dev/APE'; //APE JSF
APE.Config.domain = 'domain.dev';
APE.Config.server = 'domain.dev:6969'; //APE server URL

And one more question: do you have ssl/tls on your virtual server for the host domain.dev? Because you use it on APE.Config.baseUrl!

Maybe will help.

Louis Charette

unread,
Apr 26, 2015, 10:30:00 PM4/26/15
to ape-p...@googlegroups.com
Hi there, 

I didn’t see the « https » before  in you config.js. May or may not be related though. 

Like Sándor said, try using no subdomain first to see if it works. Also, in ape.conf, you can set « domain » to « auto ». No domain error that way.

  - Louis

--
--
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/

---
You received this message because you are subscribed to the Google Groups "APE Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ape-project...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

XxX

unread,
Apr 27, 2015, 9:37:24 AM4/27/15
to ape-p...@googlegroups.com
Hi,

Thank you for your answer.

Yes, I'm using TLS on my virtual machine and I think, I wrote something wrong in my first message.

So, I would like APE works on httpS://sub.domain.dev. When I try : https://sub.domain.dev:6969, i've got a timeout.

Here, my config.js :


APE.Config.baseUrl = 'https://sub.domain.dev/APE'; //APE JSF 
APE.Config.domain = 'domain.dev'; 
APE.Config.server = 'ape.sub.domain.dev:6969'; //APE server URL

As you said Louis, I changed "domain" in ape.conf but, still the same problem (no https to the pointing url ?) : 

Can't contact APE Server. Please check the your APE Server is running and the folowing url is pointing to your APE server : http://ape.sub.domain.dev:6969


Thank you very much !

Louis Charette

unread,
Apr 27, 2015, 9:44:55 AM4/27/15
to ape-p...@googlegroups.com
Hi,

I know ape isn't playing well with https. You can search the Google group for info on this and I believe there's a post about it on the wiki. 

Using a proxy like HAProxy could also be a solution.

Envoyé de mon iPhone

Louis Charette

unread,
Apr 27, 2015, 9:45:42 AM4/27/15
to ape-p...@googlegroups.com
Ape.config also have a "secure" option for https I believe....

Envoyé de mon iPhone

Le 2015-04-27 à 09:37, XxX <sylvain....@gmail.com> a écrit :

RakonDark

unread,
Apr 27, 2015, 9:55:56 AM4/27/15
to ape-p...@googlegroups.com

I Wonder why config Domain ist Not config url. Crossdomain ? Mave the checktool User Different protokoll

Reply all
Reply to author
Forward
0 new messages