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
luci-nginx: nginx is missing gzip support, although required by OpenWrt default config #4643
Comments
What is strange is the fact that NGINX_HTTP_GZIP is enabled by default. Can you check your compile flag for the nginx-ssl package? |
nginx-ssl is unset Here the relevant section out of my build config (file .config)
And for info the whole .config file as attachment: |
nginx is nginx-ssl that has the gzip config selected by default (in theory)... |
Only in theory as there is one erroneous line due to the old nginx/nginx-ssl separation. I tested from menuconfig and with selecting :
I think that is due to
That line causes the config menu to be dependent on "nginx-ssl" being explicitly selected. If nginx is selected via plain "nginx", then that does not hold true and the intended proper config defaults are not applied at all. I think that currently buildbot builds a faulty package... Plain "nginx" is also still offered from menuconfig, and then the config gets screwed, as the proper config gets only evaluated is "nginx-ssl" is selected. The dependency should be changed to be either ngnix or nging-ssl (and I think that it is only needed to keep menuconfig and .config more clean in case nginx are not selected at all) Best solution might be to drop nginx-ssl in total, if there is now only one ssl-enabled nginx in any case. |
I think the drop of nginx-ssl is a cleaner way to fix this. Will send some pm about this change. |
For solving the problem now, can we do step 4. from below (I did not test it yet without doing the not merged steps 2. and 3. before)? Else I would suggest to remove just the the line I want to explain it a bit further TL;DR: The reason to keep There are some aspects playing together:
Just wanted to share my tests/thoughts for avoiding some pitfalls ... |
P.S.: As this is in the luci tree. We could change |
Sure, we should change and simplify both the main package side and the LuCI side at the same time. |
It would be safe to change the LuCI side right now (it would not even change the behavior from before, as it installed always |
Closing this as it appears to be an nginx packaging error. |
I just compiled OpenWrt including luci from master branch (6.12.2020, luci version 555faf6)
Using the meta-package luci-nginx, the nginx server is unable to start up in OpenWrt.
Reason:
The default config for nginx requires gzip support, which isn't available (compiled in) in the packages selected from luci-nginx
Output of
logread -f
when starting nginx with/etc/init.d/nginx start
:Content of the file
/etc/nginx/nginx.conf
on a fresh installed OpenWrt system:I'm creating this bug as suggested by @Ansuel within the following thread at OpenWrt forum:
https://forum.openwrt.org/t/package-luci-nginx-nginx-server-not-starting-up-with-package-config/79019/3
The text was updated successfully, but these errors were encountered: