I have configured shiny server ok and I cannot redirect localhost:3838 to shiny.mywebsite.com
I followed this Redirect subdomain to port [nginx/flask] and RStudio guides but no success.
I tried
server {
listen 80;
server_name shiny.mywebsite.com;
location / {
proxy_pass http://localhost:3838;
}
}
and
server {
listen 80;
server_name shiny.mywebsite.com;
root /shiny;
access_log /var/log/nginx/shiny.access.log;
error_log /var/log/nginx/shiny.error.log;
location / {
index index.html;
autoindex on;
}
}
to be put in /etc/nginx/sites-enabled/shiny.conf
and just can access localhost:3838 but no shiny.mywebsite.com