Tomcat equivalent of jetty.ssl.host

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

amateur
Posts: 29
Joined: 07 Jun 2017, 07:18

Tomcat equivalent of jetty.ssl.host

Postby amateur » 12 Sep 2022, 19:37

Hello, I'm planning an upgrade of SmartFox Server from 2.13.4 to 2.18 and got stuck on one little topic.

I use 2 network adaptors, and so I point Jetty to the second adaptor using the following line in jetty\start_d\ssl.ini:
jetty.ssl.host=10.0.0.60

This all works fine but I can't work out what the equivalent would be in Tomcat.

Please can you point me in the right direction? Many thanks.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat equivalent of jetty.ssl.host

Postby Lapo » 13 Sep 2022, 07:12

Normally you don't need to manually configure the server, even in the case of two NICs.
Tomcat (and SFS2X) will bind both.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
amateur
Posts: 29
Joined: 07 Jun 2017, 07:18

Re: Tomcat equivalent of jetty.ssl.host

Postby amateur » 13 Sep 2022, 07:19

Lapo wrote:Normally you don't need to manually configure the server, even in the case of two NICs.
Tomcat (and SFS2X) will bind both.

Cheers


Thanks Lapo.

Ah you see I have 2 NICs, both with port 443. I use one for the webserver and another for Jetty (SmartFox). If it binds to both then the webserver will stop working.

I suppose I can stay on 2.13 if it's not supported on Tomcat.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat equivalent of jetty.ssl.host

Postby Lapo » 13 Sep 2022, 13:36

I see.
By default Tomcat will bind port 8443 which doesn't conflict with your other http server. I guess you're implying that Tomcat should also use port 443 for HTTPS?

I suppose I can stay on 2.13 if it's not supported on Tomcat.

No problem. It is supported, take a look here:
https://stackoverflow.com/questions/186 ... -instead-o

The config file in question is found under SFS2X/lib/apache-tomcat/conf/server.xml

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
amateur
Posts: 29
Joined: 07 Jun 2017, 07:18

Re: Tomcat equivalent of jetty.ssl.host

Postby amateur » 13 Sep 2022, 15:55

Hi thanks that's just what I needed!

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 48 guests