Last active
February 6, 2018 07:08
-
-
Save chunjie-sam-liu/e2c68028be29875bc7feac2287381c73 to your computer and use it in GitHub Desktop.
shiny server and apache2 connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put the proxy and rewrite engine in the site-available.conf