I have a file system directory(files and folders) in a google cloud platform virtual machine as a mounted disk. I wanted those files should share across all other applications to access those files.
VM OS - Debian 9
I've tried:
Thought using Nginx server to share the files like - http:// IP Address/path/to/file.pptx configuration file
server {
listen 8080 default_server;
listen [::]:8080 default_server;
server_name <IP Address>;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /<mounted file path>;
index index.html index.htm;
try_files $uri $uri/ =404;
}
}
Things are working as I expected, getting 404 error when try to access using this URL - http:// IP Address/path/to/file.pptx
Actually I have no clue how to access those files. I would appreciate it if someone helps me out with a right solution.