B4J Question [ABMATERIAL] VPS deployment issues...

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

So, I have a VPS... it runs Centos8 and Plesk as control panel.
It runs nginx as a proxy to Apache.
I have done all the works... disabled both nginx and apache to unbind port 80 and port 443; changed both ports firewall rule to TCP/UDP and runned the jar file.
Looking at the nohup.out file i see the server is running as expected but...
I get a connection refused!
What can i be missing???
Also, Apache has this weird tendency to restart itself...
 

jahswant

Well-Known Member
Licensed User
Longtime User
So, I have a VPS... it runs Centos8 and Plesk as control panel.
It runs nginx as a proxy to Apache.
I have done all the works... disabled both nginx and apache to unbind port 80 and port 443; changed both ports firewall rule to TCP/UDP and runned the jar file.
Looking at the nohup.out file i see the server is running as expected but...
I get a connection refused!
What can i be missing???
Also, Apache has this weird tendency to restart itself...
What port are you running in your webApp ?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Port 80, so that it would sufice to enter my domain name.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
The jetty generated logs warns when it tries to use a already binded port, so, normally, since the server starts, the port was free and binded by the jetty server... no?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
So... i decided to test on my phone and surprise... it works...
Further investigation shows that the phone uses port 80 (http) but my computer redirects http requests to https (port 443)
So... how can i solve this without disabling the https redirect ?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
OK....
SO for time being, and since I have nothing important on my vps, other than a very very simple landing page based on ABMaterial...( it will serve as a starting point for development... one must first learn how to crawl before trying to run the marathon!)

Still, at some point I will need to set it SSL... but I have no clue!!!
I found a very old post from @Harris , where he almost tears his head off trying to accomplish this same thing...
Is there any Tutorial available for this? Seems like jetty is somewhat picky about certificates and such.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Check this recent post...


Look at @tchart comments in #3.

Setting up SSL is not that difficult - it's learning how to do it properly... then it's easy ( ha! )
The problem with the free ones is when you have to renew - like in 3 months...
I setup Let's Encrypt on one server I have (which worked) , then when it expired - I was lost - could not update it - try as I might following all instructions! DANG!!!
My site is still not secure....

I have a paid for SSL, the one you referred to above in post #7. It was a battle to config - with help from the experts.
My original VPS provider tried to screw me so I moved to another. I have not tried to use my paid SSL since.

Granted, we all need SSL on our sites - or potential clients (governments, hi profile businesses and smart people) won't consider us as ligit...
 
Upvote 0
Top