You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I encountered an issue while configuring Nginx for Shiny. I referred to the instructions provided in the "Running Shiny Server with a Proxy" article at https://support.posit.co/hc/en-us/articles/213733868 to configure Nginx for Shiny, but I ran into a problem with my Nginx configuration.
However, both the Nginx and Shiny logs do not show any error messages,the console displays the following error:
GET https://my.xxxxx.com/shiny-server/test/__assets__/shiny-server.css/ net::ERR_ABORTED 404 (Not Found) test/:21
GET https://my.xxxxx.com/shiny-server/test/__assets__/sockjs.min.js/ net::ERR_ABORTED 404 (Not Found) test/:18
GET https://my.xxxxx.com/shiny-server/test/__assets__/shiny-server-client.min.js/ net::ERR_ABORTED 404 (Not Found) test/:19
I have spent a day without finding the cause of this problem and hope to get your help!
[root@localhost nginx]# shiny-server --version
Shiny Server v1.5.21.1012
[root@localhost nginx]# nginx -V
nginx version: nginx/1.24.0
The text was updated successfully, but these errors were encountered:
Hello, I encountered an issue while configuring Nginx for Shiny. I referred to the instructions provided in the "Running Shiny Server with a Proxy" article at https://support.posit.co/hc/en-us/articles/213733868 to configure Nginx for Shiny, but I ran into a problem with my Nginx configuration.
user sldai;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Security headers
server_tokens off;
#add_header Content-Security-Policy "default-src 'self';";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_comp_level 2;
gzip_vary on;
}
However, both the Nginx and Shiny logs do not show any error messages,the console displays the following error:
I have spent a day without finding the cause of this problem and hope to get your help!
[root@localhost nginx]# shiny-server --version
Shiny Server v1.5.21.1012
[root@localhost nginx]# nginx -V
nginx version: nginx/1.24.0
The text was updated successfully, but these errors were encountered: