Hello,
I'm new to OpenLiteSpeed and just about setting up my first app with it.
I have an HTTP and a HTTPS Listener. HTTPS is forced, which means I have a redirect from HTTP to HTTPS:
I have a NodeJS app as my API server. I have followed internet instructions to set it up with my OLS server.
From what I understand the /api route should now be available and forward all requests to the nodejs server. What I don't understand is: Does OLS now start the nodeJS server itself? Automatically? When? On every OLS start? And how is it supposed to know the port I configured my nodejs http server to run?
After all, it does not work. And I can also not see the port running in any process after a restart.
Help is much appreciated! Thank you
I'm new to OpenLiteSpeed and just about setting up my first app with it.
I have an HTTP and a HTTPS Listener. HTTPS is forced, which means I have a redirect from HTTP to HTTPS:
Code:
rewriteCond %{HTTPS} !on
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
From what I understand the /api route should now be available and forward all requests to the nodejs server. What I don't understand is: Does OLS now start the nodeJS server itself? Automatically? When? On every OLS start? And how is it supposed to know the port I configured my nodejs http server to run?
After all, it does not work. And I can also not see the port running in any process after a restart.
Help is much appreciated! Thank you