B4J Question ABMaterial with Nginx

Pablo Torres

Active Member
Licensed User
Longtime User
Hi, I have a server running CentOS 7 with Nginx and Java 8, I use it a lot to work with B4J Server jar's to interact with my apps, for example a build a server app called ReceiveData that listen to internal port 17181, if the correct address used to be http://xxxxxxxxxxxxx:17181/Districronos? then I can configure in Nginx:

location /Receive/ {
proxy_pass http://127.0.0.1:17181/Districronos?;
}

That way, I just have to send a post to http://xxxxxxxx/Receive in order to make it work together. It works perfect

Now I'm trying to use all the same with a site developed with ABMaterial, the port is 17185 and the name of the site is SportsTicket
If I go to http://xxxxxxxx:17185/SportsTicket then it´s working perfect, but I want to configure it in Nginx to work the same at http://xxxxxxxxxx/SportsTicket

Can anyone help me to do that?
Many Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Have you tried to confige it the same as you did with Receive?

B4X:
location /Receive/ {
proxy_pass http://127.0.0.1:17181/Districronos?;
}
location /SportsTicket/ {
proxy_pass http://127.0.0.1:17185/SportsTicket?;
}
 
Upvote 0

Pablo Torres

Active Member
Licensed User
Longtime User
You should be able to do the same as you did for /Receive/.

Have you tried this?

B4X:
    location /SportsTicket/ {
        proxy_pass http://127.0.0.1:17185/SportsTicket?;
    }
Of course I tried that before even writing here, it doesn't work.
I tried again after your answer, just in case, not working, I'm sure
 
Upvote 0

Pablo Torres

Active Member
Licensed User
Longtime User
Have you tried to confige it the same as you did with Receive?

B4X:
location /Receive/ {
proxy_pass http://127.0.0.1:17181/Districronos?;
}
location /SportsTicket/ {
proxy_pass http://127.0.0.1:17185/SportsTicket?;
}
Thank you Don for your answer, already tried that but doesn't work,
any other idea?
 
Upvote 0
Top