Skip to content

Instantly share code, notes, and snippets.

View chunjie-sam-liu's full-sized avatar
🖖

Chun-Jie Liu chunjie-sam-liu

🖖
View GitHub Profile
@chunjie-sam-liu
chunjie-sam-liu / shiny-server-apache2.conf
Last active February 6, 2018 07:08
shiny server and apache2 connection
<VirtualHost>
# add by Chun-Jie Liu (mailto:chunjie-sam-liu@foxmail.com), for shiny server deployment
# shiny server config /etc/shiny-server/shiny-server.conf
# shiny site_dir and log_dir in the shiny-server.conf file
# configuration below is using apache to support shiny-server
RewriteEngine on
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /web/(.*) http://localhost:3838/$1 [P,L]
ProxyPass /web/ http://localhost:3838/
ProxyPassReverse /web/ http://localhost:3838/