作者rex60209 (Ghost)
看板Linux
標題[問題] ubuntu-14安裝elasticsearch設定檔問題
時間Fri Apr 29 23:46:02 2016
我安裝了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;
}
}
她顯示紅字讓我無法重啟
請問要怎麼解決
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.161.249.172
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1461944765.A.1D3.html
推 kenduest: 最後跑 nginx -t 檢查設定檔案語法有顯示錯誤嗎? 04/30 00:02
→ CP64: 改成雙引號試試? 04/30 00:06
→ soem: 話說,這個應該算是kibana問題喔 04/30 02:52