-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWA Requirement / http2 #431
Comments
Hello @wolfwahl, Currently devilbox is setup to use nginx or apache, not both. However, the docs have a good explaination about where you can choose which web server to run: |
@science695 is my English really that bad? :-/ It's very well documented how to configure which web server to use. But I would like to know how to configure devilbox either one of these servers (nginx or apache) to serve responses via http/2 |
I'm sorry I misunderstood you, I wasn't fully sure what you were asking for. Okay, you are asking about http/2. I am not super familiar with http/2 configuration, but I believe to do that you need to change the virtualhost configuration in nginx or apache. WIth devilbox, you can customize the generated virtual hosts. Here is the document page for that: |
Nope, for apache e.g. you need to enable a module + configuration. |
This will probably require @cytopia to add those modules to the docker image. If you can describe what needs to be installed, cytopia does a great job developing devilbox and adding features. |
@wolfwahl I myself do not have any experience with http2 yet. Do you have some example configurations for nginx/apache as well as what modules are required to make it work? |
@cytopia maybe that would provide a good start? https://geekflare.com/http2-implementation-apache-nginx/ Would really appreciate an (maybe optional) implementation of http2 |
@daancart2quote thanks for the info. How can I actually test that I am using http2? |
@daancart2quote great! Cheers mate! @cytopia -> Browser -> Developer Tools -> Networking -> enable Protocol (Chrome: right click Table-Header) |
@wolfwahl Awesome! I've also tried it with Nginx its as simple as:
However when editing vhost-gen configs this will be added to http and https configs and then http will stop working. I will built this into vhost-gen so it will be correctly configured depending on SSL or not |
@cytopia This is not working for me - results in the same error I run in during my first attempt. Added your line to nginx stable: 2019/01/05 14:31:15 [emerg] 237#237: "listen" directive is not allowed here in /etc/httpd-custom.d/devilbox-custom.conf:18 ...and looping |
@wolfwahl this setting does not go into |
@cytopia cheers! Got it working - had to specify the server_name also. Still get an error(?), but it serves h2 - so I'm fine. httpd_1 | nginx: [emerg] a duplicate default server for 0.0.0.0:443 in /etc/httpd/vhost.d/yaspi.conf:3 |
My bad, the example was shown for the default server and there can only always be one (which is used for the devilbox intranet on localhost itself). For all other vhosts, just omit the
|
@wolfwahl I've now made it the default for all SSL connections. Checkout the open PR: #462 It does not work on Apache 2.2 though (too old). Also keep in mind that vhost-gen templates in |
Refs cytopia/devilbox#431 Fix sourcing of global vhost-gen template
Refs cytopia/devilbox#431 Fix sourcing of global vhost-gen template
Refs cytopia/devilbox#431 Fix sourcing of global vhost-gen template
Hi,
could you provide a sample on how to configure devilbox to serve request on apache and nginx via http/2 ?
tnx!
The text was updated successfully, but these errors were encountered: