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