JS File Not Being Served Over HTTPS
I have turned on HTTPS on a website, and I have discovered that a JS file that until now was being served correctly when requested from a script tag in my template is now failing all the time.
The request that works is something like:
http://dev.mysite.com:54346/socket.io/socket.io.js
And the one that doesn't is not that much different:
https://dev.mysite.com:54346/socket.io/socket.io.js
Looking at the output of lsof -i :5346
and top
and stopping the script I've been able to figure out that a node script that we start with forever
is actually somehow answering the petition that works, but not the other one. I don't know too much about node, but looking into the code of that script and its requirements (socket.io
) I haven't seen anything that makes me think it could work only with HTTP and not with HTTPS.
I don't actually understand how does this work, because I haven't seen any configuration of Apache that could even remotely mean something like "redirect this requests to this process".
The only solution I could think of was to redirect the petition trough HTTPS to HTTP, but I tried using mod_proxy
and mod_rewrite
without any luck at all.
Thanks in advance!
Answer
I'm gonna mark this as resolved because we are pretty sure now it is more a nodejs issue than an Apache conf one. Thanks anyway, Ed Williams!
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM