Enabling HTTPS results in js and css calls returnining 404

BlkWolf LanHunter Posted in Technical Support 3 years ago

Attempting to enable https:// on my site. I have read through what I can here and confirm I have...

  1. disabled cache
  2. set theme to default
  3. updated ossn.config.site.php and replaced **http://** with **https://**
  4. loading http:// page on web browser does redirect URLs to https:// (confirming traffic through 443 = success)
  5. Page loads but shows only images and not any formatting (js or css)
  6. Apache logs confirm js/css returning 404
    ..."GET /js/view/opensource.socialnetwork.js HTTP/1.1" 404 683 "https://...
    ..."GET /css/view/bootstrap.min.css HTTP/1.1" 404 530 "https://....
    ..."GET /captcha/3140fd81a5655dc769fb9705523911ef HTTP/1.1" 404 530 "https://...
  7. while there's are successful
    ..."GET /themes/goblue/images/logo.png?v=1604979298 HTTP/1.1" 200 4352 "https://...
    ..."GET /themes/goblue/images/favicon.ico HTTP/1.1" 200 1481 "https://...
  8. apache2ctl -S shows me the servers, the ports they are listening and the files they are sourcing. The rest of the information remains the same.
  9. reverting change by removing https:// to http:// in ossn.config.site.php restores site back to http:// and operational status.

Additional information:
Services enabled here was dynu.com site using Let's Encrypt via ACME protocol.

Any ideas what else could be added to the troubleshooting and ID of this issue? I did find a few articles on the site here on how others have had similar, but could not find one that seamed to align. (sorry if I have missed it)

Cheers

Replies
German Michael Zülsdorff Replied 3 years ago

If you don't mind: Please post onto the TextAreaSupport component page directly.
Thx.

us BlkWolf LanHunter Replied 3 years ago

Happy to help. I will post my observations over on the other thread regarding the TextAreaSupport issue.

German Michael Zülsdorff Replied 3 years ago

Thank you very much for your helpful feedback, BlkWolf.
Perhaps you can find the reason for that mysterious TextareaSupport issue, too.
Honestly, I still have no idea what was causing it.
This component isn't - aside from a little larger size of 500k - in any way special.

us BlkWolf LanHunter Replied 3 years ago

Ah yes. Thank you for the link. I was at the time, running into similar and was attempting to contribute to another's issue post who appeared to have same struggles. Apologies if I added confusion there.

ISSUE UPDATE RESOLVED:
Upon further investigation I was able to find that when enabling SSL, that SSL is more restrictive on the AllowOverride. For myself, I had to go into my apache's default-ssl.conf and include the following to set AllowOverride specifically for for ssl.

            <Directory /var/www/html>
              AllowOverride All
            </Directory>

Once restart performed, https:// site comes up w/ all js/css calls.

Investigation found that issue was not modsecurity being triggered in this case. While testing, no modsecurity rules where triggered. This was verified by monitoring the mod_security logs for activity.

Reference Article: https://magento.stackexchange.com/questions/257427/404-not-found-after-changing-http-to-https

Cheers all.

German Michael Zülsdorff Replied 3 years ago

I meant this one:
https://www.opensource-socialnetwork.org/discussion/view/4263/ossn-52-apacheubuntu-component-enabling-causes-http-500

I'd give it a try and disable mod_security and see if it makes a difference.

us BlkWolf LanHunter Replied 3 years ago

Good day to yourself ~Z~
Apologies on my part. I am not aware of a pending question you had for myself regarding a different topic. I searched this forum and could not find any topic I was involved on that subject. May I trouble you for a link to the discussion board where you have a question pending for myself?

I wanted to make sure this challenge was documented for any who may experience after and help provide an article that could address it for them in the future, in hopes to help someone else who may run into the same.

Thanks again.

German Michael Zülsdorff Replied 3 years ago

It's not that we're not willing to look into this new issue,
but lately you reported problems while installing TextareaSupport and I'm still waiting for your feedback.