Hi guys. Spent the morning trying to figure out how to get HTTP/2 working on a nodeworx VPS account. I found an old post here in the forum but it didn’t work. I wanted to share my outcome and at least confirm it is correct or hear what else might need to be done. Features change over time I get it. I found this section of the httpd.conf file using the panel. I don’t ssh much sorry. Here’s the section and my entry at the end:
Dynamic Shared Object (DSO) Support
To be able to use the functionality of a module which was built as a DSO you
have to place corresponding LoadModule' lines at this location so the directives contained in it are actually available _before_ they are used. Statically compiled modules (those listed by httpd -l’) do not need
to be loaded here.
Example:
LoadModule foo_module modules/mod_foo.so
Include conf.modules.d/*.conf Protocols h2 h2c http/1.1
So as far as I can tell the include loads all the modules. All I had to do was configure it. I tried wrapping it in tags but that failed when testing using the online tools. This way with just the configuration line seems to work. Others wrote online to restrict this directive to the SSL port.
So what’s the right thing to do here given the latest nodeworx version?
It looks like you’re right. The module is included in our rhe8x builds of httpd, but the configuration was not brought over when we had to build that package from scratch.
What you have there should work. Our default in rhe7x is:
Protocols h2 http/1.1
Good catch! Thanks for letting us know. We’ll work on getting a build out that includes this config by default.
Some background info if you are interested, might help inspire someone there to build a very useful “How To” page. Google Lighthouse and Search Console have been pushing performance requirements the last few years. I and presumably others change servers once in a while but not too often. It’s hard to remember all the security headers we need to add and remove, every server has its quirks with that. Yesterday I received some Console messages I didn’t like. It was time, so I couldn’t delay any longer. I had to setup http/2 and also deflate compression. I did see broli as the recommended mod and will try that soon. I was a bit disappointed that the same old code from 201X was coming up in Google search (they messed up their search results I know) but I can’t be the only one trying to get a refresher specific to the nodeworx panel also. Ok just wanted to throw that out there. Thanks for letting me know I didn’t lose my mind!