Installing CesiumJS with NGINX

I am attempting to install CesiumJS on a Centos 8 host using NGINX as the web server.

I need help with configuring NGINX to point to CesiumJS location. Here is a snippet of nginx.conf that is pointing to Cesium …

server {
listen 8085 default_server;
listen [::]:80 default_server;
server_name geoweb01;
root /www/cesium;

    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;

    location / {
    }

    location /Apps/ {
    }

======================================
In the web browser I’m using … http://geoweb01:8085/Apps/HelloWorld.html … the result is and NGINX error message … “404 … not found”

How do I set the path correctly so that NGINX can server CesiumJS?

All you need to do is statically host the directory that has the CesiumJS library, and your application.

I’d look up how to statically host a directly with Nginx, you can create a simple index.html file to test this. Once that’s working, you should just be able to switch that to your CesiumJS directory and it should work.