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

By Leila
at 2016-04-29T23:46
at 2016-04-29T23:46
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;
}
}
她顯示紅字讓我無法重啟
請問要怎麼解決
--
進入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;
}
}
她顯示紅字讓我無法重啟
請問要怎麼解決
--
Tags:
Linux
All Comments

By Candice
at 2016-05-02T10:16
at 2016-05-02T10:16

By Adele
at 2016-05-04T07:55
at 2016-05-04T07:55

By Rae
at 2016-05-06T03:18
at 2016-05-06T03:18
Related Posts
CentOS 7 apache資料夾權限

By David
at 2016-04-29T13:52
at 2016-04-29T13:52
svn 通知 client user update

By Una
at 2016-04-29T12:04
at 2016-04-29T12:04
Ubuntu 16.04 不能登入開機畫面

By Erin
at 2016-04-29T10:13
at 2016-04-29T10:13
CentOS 7 httpd 無法啟動

By Aaliyah
at 2016-04-28T09:06
at 2016-04-28T09:06
ubuntu 16.04 使用瀏覽器常常當機

By Lily
at 2016-04-27T22:51
at 2016-04-27T22:51