Hello.

I think document should be updated.
And Could you try following nginx configuration for proxy ?
Thanks.

server {
  listen 80 ;
  server_name _;

  location / {
    proxy_set_header Host            $host;
    proxy_set_header X-Real-IP       $proxy_protocol_addr;
    proxy_set_header X-Forwarded-For $proxy_protocol_addr;

    proxy_pass  http://backend;
  }

  location /ws {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

    proxy_set_header   X-Real-IP $remote_addr;
    proxy_pass  http://backendWS;
  }
}



2016-03-24 22:20 GMT+09:00 Max Bridgewater <max.bridgewa...@gmail.com>:

> Jesan,
>
> Thanks for the link. I changed my configuration to match the one in that
> link. But still doesn't work. I am pasting my config below. The other thing
> that I find weird is that since 0.5.5, Zeppelin uses single port for REST
> and websocket  (see https://issues.apache.org/jira/browse/ZEPPELIN-172).
> Yet, the 0.6.0 security page you pointed at, uses two different ports; one
> for REST and one for Websocket.  So, I am wondering if the documentation is
> really uptodate.
>
> Thanks,
> Max.
>
>
> upstream zeppelin {
>     server localhost:8080;
> }
>
> upstream zeppelin-wss {
>     server localhost:8081;
> }
>
> server {
>     listen 8010;
>     server_name localhost;
>
>
>     location / {
>         proxy_set_header X-Real-IP $remote_addr;
>         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>         proxy_set_header Host $http_host;
>         proxy_set_header X-NginX-Proxy true;
>         proxy_pass http://zeppelin;
>         proxy_redirect off;
>     }
> }
>
> server {
>     listen 8011;
>     server_name localhost;
>
>     location / {
>         proxy_pass http://zeppelin-wss;
>         proxy_http_version 1.1;
>         proxy_set_header Upgrade websocket;
>         proxy_set_header Connection upgrade;
>         proxy_read_timeout 86400;
>     }
> }
>
>
>
> On Thu, Mar 24, 2016 at 8:00 AM, Jesang Yoon <yoon...@kanizsalab.com>
> wrote:
>
>> Max,
>>
>> You can check out NGINX related settings with Zeppelin at document here:
>>
>>
>> http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/security/authentication.html
>>
>>
>>
>> I hope this will help :)
>>
>>
>>
>>
>>
>> -----Original Message-----
>> *From:* "Max Bridgewater"<max.bridgewa...@gmail.com>
>> *To:* <users@zeppelin.incubator.apache.org>;
>> *Cc:*
>> *Sent:* 2016-03-24 (목) 20:30:13
>> *Subject:* Reverse Proxying Zeppelin 0.5.6 with NGINX
>>
>> I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is
>> below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot
>> create notes and I don't see the Zeppelin tutorial note.
>>
>> Any suggestion?
>>
>> Thanks,
>> Max
>>
>>
>>   server localhost:8080;
>> }
>> server {
>>         listen 80;
>>         server_name localhost;
>>         location / {
>>     proxy_set_header Upgrade $http_upgrade;
>>     proxy_set_header Connection "upgrade";
>>     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>>         proxy_set_header   X-Real-IP $remote_addr;
>>         proxy_set_header   Host      $http_host;
>>         proxy_pass  http://backendWS;
>>     }
>> }
>>
>>
>>
>
>

Reply via email to