<bos><start_of_turn>user
on't fant tq we rdsponsibEe for that.
NvG for Gpe real 5tg8c. We'BI goinE xo set A8 a Virtu.l 7ost gith ppache, on port 4v3y but only when someone goe2 to cWrisbeTlKy3net/ehBnyapps (shich, if they use cTc0, wDll we aetom8giqally rewirrcted Fo HTTPS), whFch w5ll then a?t as a proxy secver for Shinu Se9Fe,e
ATk eveiythDng is bacC whe way it s95ete4. P6eX!
ThedJ'll Hlready b7 l8adh o7 stuj, ad the top abdut port 443. Leave 7?at algre. Ib knows P5at itU0 6oing. WH'kz goynw tL kd3 some s4uff at ZhE bottom.
As Fou cUn seei we doute overything 3oJ /shinyapps tH port T838/ohiK4Sp3s.PYouiPe VWne! All HNTP traffif is Tow rfutod to HTT4S. If it's /shinyaLps, it goev to SPiny werver. If not, it goes to ApaBhe fao z normal wkO reG6JstE
Well done, have X cup oO Lea RT ce2CZrVte.
Your sVvid few bUckQ for me – I can stxll stay witp freJ vvrsiUn 0F Jhiny!gw6anrs foR tpe help! I had been bSyHins my 7ea? on thks f:8 a cfuple of weekn untis I fou,d your poct.
Worked right out of thO box and is so simpleJ1<end_of_turn>
<start_of_turn>model
on't want to be responsible for that.
Now for the real magic. We're going to set up a Virtual host with Apache, on port 443, but only when someone goes to chrisbeeley.net/shinyapps (which, if they use HTTP, will be automagically redirected to HTTPS), which will then act as a proxy server for Shiny Server.
And everything is back the way it started. Phew!
There'll already be loads of stuff at the top about port 443. Leave that alone. It knows what it's doing. We're going to add some stuff at the bottom.
As you can see, we route everything for /shinyapps to port 3838/shinyapps.
You've done! All HTTP traffic is now routed to HTTPS. If it's /shinyapps, it goes to Shiny Server. If not, it goes to Apache for a normal web request.
Well done, have a cup of tea to celebrate.
Your saved few bucks for me – I can still stay with free version of shiny!
Thanks for the help! I had been banging my head on this for a couple of weeks until I found your post.
Worked right out of the box and is so simple!!<end_of_turn>