-
Notifications
You must be signed in to change notification settings - Fork 247
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
Add a couple of parameters to fastcgi_params. #20
Conversation
Olá Raul, There's no
this in 1.1.12. There is a variable http://trac.nginx.org/nginx/changeset/4380/nginx I've added this variable to the config. It will work if using Nginx version greater or equal to 1.1.11. If using a prior version then there's a fallback using the Thanks for pushing this. It was high time to be included. |
Ah yes, the |
I am using nginx 1.1.11 and it doesn't complain about the $server_https variable. Perhaps your nginx.conf is missing something that got updated recently. Mine has it like this:
See if that helps. |
Nevermind, I hadn't seen your commit before replying. Thanks! |
You don't need that if you're using 1.1.11. There's already a |
The funny thing is, I don't have a $https_if_not_empty variable but I do have a $server_https, as I described above. That's why I thought it was the default name. But from a couple of google searches, I'm under the impression that this is something unique to the packages in the official Ubuntu PPA. They also removed aio support (stating that it caused too much trouble), which makes me wonder what else is changed. I'm starting to think that maybe I prefer to go with building nginx from source myself instead... |
But that came with your config. It's not anywhere on the official sources AFAICT. You can test for
if it exists |
Exactly, it came with my config, hence my mix up.
I'll have to check what other differences there are between the PPA and the source. |
Well Raul my advice is for you to build your own. I did the same. In a critical component like the web server you should be in control as much as possible. Also Nginx has a breakneck development rhythm by buidling your own you're always on the bleeding edge, which is the place to be :) IIRC there as a snafu with AIO on Linux on 1.1.9 (see here) they released 1.1.10 to fix that. Probably the PPA mantainer didn't bother to update the debian |
I agree. I usually don't software from PPAs but since the version in Ubuntu's repositories is old and even the official repositories from nginx.org for both Debian and Ubuntu are still stuck on 1.0.11, I thought I'd give it a try. What I'd like was a simple and semi-automated way of upgrading to new versions (what I'm doing is not a mission critical thing) but it's not that much work to do it by hand, I guess. |
Well the obvious plug: use mine ;) I maintain up to date versions. This is really bleeding edge. Usually I add patches posted to the nginx-devel list. It's built for debian unstable but with apt pinning you can use with stable or Ubuntu. I don't know how the dependencies in debian terms map to Ubuntu releases. You have to try and see how it goes. |
A couple of parameters are missing from fastcgi_params.