B4J Question [ABMATERIAL] timeout vpn

juvanum

Active Member
Licensed User
Longtime User
Hi,
Yesterday I installed the Erel chat on my vps server (AMAZON ELASTIC BEANSTALK). Everything works perfectly (port 5000).


I uninstalled the Erel chat and installed ABMaterial chat (port 5000, app name: prova1).
The ABMaterial chat works only in local:

Cattura3.PNG








This shows the amazon server:

Cattura2.PNG

any suggestion?
thank you
 

Cableguy

Expert
Licensed User
Longtime User
For abmaterial application you need to provide the path to it: /prova1 in the address bar, also needs to be set in the b4j source code. From the screen shot you posted you cleary didn't provide the address as such and there jetty has nothing to show !
I rekon since he is able to run it in localhost, he knows he must provide the rest of the path for the app...
Also, the vps is giving a 403 forbiden error, and not a 404 not found
 
Upvote 0

mindful

Active Member
Licensed User
I rekon since he is able to run it in localhost, he knows he must provide the rest of the path for the app...
As you can see in the attachment... he doesn't provide the full path .. just the server address.

Also, the vps is giving a 403 forbiden error, and not a 404 not found
Jetty is giving the 403 error because at the root (File.DirApp/www) there is no file (index.html) to provide so instead jetty tries to show the whole dir (www folder) but it's blocked by a rule set with the srvr.SetStaticFileOptions (in ABMApplication -> StartServer)

So in my opinion just providing the full address (server_hostname/app_name/) will make it work.

As for why aws automatically redirects all of port 80 traffic to the app 5000 port i really don't know, basically aws acts as a proxy automatically ...
 
Upvote 0
Top