ubuntu-14安裝elasticsearch設定檔問題 - Linux

Table of Contents

我安裝了elasticsearch和nginx apache2
進入vim /etc/nginx/sites-available/default 打入設定檔
server {
listen 80;

server_name example.com;

location / {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';(這行會是紅字)
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
她顯示紅字讓我無法重啟
請問要怎麼解決

--

All Comments

Candice avatarCandice2016-05-02
最後跑 nginx -t 檢查設定檔案語法有顯示錯誤嗎?
Adele avatarAdele2016-05-04
改成雙引號試試?
Rae avatarRae2016-05-06
話說,這個應該算是kibana問題喔