Apache와 Zeppelin 연동
Apache와 Zeppelin 연동
405 HTTP method GET is not supported by this URL
이라는 오류 문구가 발생시에는 WebSocket에 대한 설정 부분을 확인해서 HTTP Header의 정보를 추가하여 Rewrite 해주면 제대로 작동함.
Apache VirtualHost 설정
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ServerName zeppelin.coolio.so
RewriteEngine on
AllowEncodedSlashes on
RewriteCond %{HTTP:Upgrade} =WebSocket [NC,NV]
RewriteRule ^/(.*) ws://127.0.0.1:9696/$1 [P]
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /ws/ ws://127.0.0.1:9696/ws/
ProxyPassReverse /ws/ ws://127.0.0.1:9696/ws/
ProxyPass / http://127.0.0.1:9696/
ProxyPassReverse / http://127.0.0.1:9696/
ProxyPassReverseCookiePath / /
WebSocket에 대한 ProxyPass는 아파치 2.4 이후부터 가능함.
This post is licensed under
CC BY 4.0
by the author.