Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I setup Aegir
I have Ip based ssl working and I can switch to SNI based also. So the site is ssl
I want to run a nodejs server on my machine
The nodejs server needs its own separate port
To avoid blocking of non-http content being served on a https page, I would like to deliver nodejs via https.
But there is not a way for me to specify multiple ports
Comments
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI can't get this to work:
nodejs is running on mysite.com:9110
mysite.com is ssl enabled and required to be ssl
I opened vhost.d/mysite.com file and modified it
I cannot get this to work. Am I thinking about this all wrong?
i get internal error
Comment #3
MartijnBraam CreditAttribution: MartijnBraam as a volunteer commentedThis is an example from my Apache config with a Nodejs server:
This assumes your node server doesn't handle SSL itself. Apache handles the SSL connection and the communication (on localhost) between apache and nodejs is plain text (but looks ssl from the client side)
If your nodejs server does actually has it's own SSL termination then you replace http with https in my example code (And you need to check if your apache accepts the SSL cert on your nodejs server)
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedare you running the nodejs server remotely or on your machine.
I take it that since its '127.0.0.1' that you are running it on your machine.
Comment #5
ergonlogicBTW, you can implement
drush_hook_provision_apache_vhost_config()
to have such config injected into the site's vhost. There are equivalent hooks for platforms or servers too.Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedHelpful links
https://github.com/socketio/socket.io/issues/1696