Nginxのserver_https

またハマった。。。
Nginxのバージョンを上げたところ、
必要なオプションが設定されていないと怒られた。。。

 # nginx -v
nginx version: nginx/1.0.11
#
# /etc/init.d/nginx reload
Reloading nginx configuration: nginx: [emerg] unknown "server_https" variable
nginx: configuration file /etc/nginx/nginx.conf test failed

ただ、アップデート中にConfの上書きするかどうかを聞かれてますので、
上書きしてしまえば、出ないですのですが。。。


アップデートされた設定ファイルを見てみる。

# cat /etc/nginx/nginx.conf.dpkg-dist

        ##
        # If HTTPS, then set a variable so it can be passed along.
        ##

        map $scheme $server_https {
                default off;
                https on;
        }

こいつっぽい。

ただ、このまま使うとレスポンスがどうも悪いので、

# vi /etc/nginx/nginx.conf

        ##
        # If HTTPS, then set a variable so it can be passed along.
        ##

        map $scheme $server_https {
        #       default off;
        #       https on;
        }

コメントアウトして追記しました。

ただ。。。。
どんな設定なのかよくわかってないw

[tegaki]教えてエライ人〜[/tegaki]

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Enter code * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.