Skip to content

Instantly share code, notes, and snippets.

@chunjie-sam-liu
Last active February 6, 2018 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chunjie-sam-liu/e2c68028be29875bc7feac2287381c73 to your computer and use it in GitHub Desktop.
Save chunjie-sam-liu/e2c68028be29875bc7feac2287381c73 to your computer and use it in GitHub Desktop.
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/
</VirtualHost>
@chunjie-sam-liu
Copy link
Author

Put the proxy and rewrite engine in the site-available.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment