V Gupta
V Gupta

Reputation: 23

Hiding Port number in Shiny Apps using Shiny Server

I have deployed an app using Shiny Server on AWS instance. When I run Shiny app, it launched itself at URL XXX.XXX.XXX.XXX/8787/p/1234. I need to share this URL with my colleagues, but I want to hide IP+port number where shiny server is running i.e. I want to hide XXX.XXX.XXX.XXX/8787, or at least one of IP/ Port should not be visible to them. Is there any way out of hiding this? I want my colleagues to see something like XXX.XXX.XXX.XXX/shiny/p/1234 (port number hided) or shiny/p/1234 (IP+port hided). Any help would be highly appreciated.

Upvotes: 0

Views: 415

Answers (1)

Tarik
Tarik

Reputation: 1

you probably already find your answer. But a way of doing what you want is to use

<VirtualHost *:80>
...
ProxyPreserveHost On
ProxyPass /shiny http://0.0.0.0:3838/shiny
ProxyPassReverse /shiny http://0.0.0.0:3838/shiny
ServerName localhost
</VirtualHost>

In your httpd.conf 'your server config file this exemple is for apache' Then you Can Access to your app in http://ip_address/shiny/your_app_name

Upvotes: 0

Related Questions