0
我已经配置有光泽服务器确定,我不能重定向本地主机:3838到shiny.mywebsite.com闪亮服务器和nginx的子域
我跟着这个Redirect subdomain to port [nginx/flask]和RStudio导游,但没有成功。
我试图
server {
listen 80;
server_name shiny.mywebsite.com;
location/{
proxy_pass http://localhost:3838;
}
}
和
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;
}
}
被放在/etc/nginx/sites-enabled/shiny.conf
,只是可以访问本地主机:3838但没有shiny.mywebsite.com