Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Host public folder in nginx (1 reply)

$
0
0
Hi,

I am using a pre-configured webserver that comes with NGINX-RTMP module (I
was having build issues even after installing all required dependencies so
I had to download a VM).

The config files are in /usr/local/nginx/conf while landing and stream
pages are in '/usr/local/nginx/html' and '/usr/local/nginx/html/stream' and
can be accessed via http://<IP-address> and http://<IP-address>/stream
respectively.

I want to upload some files to be accessible so I uploaded them to
'/usr/local/nginx/html/content' directory and made changes to nginx.conf by
adding a location block within the server block in nginx.conf with root
pointed to 'html/content' as the first location block is set to root html;
I have reloaded the conf but I am getting 403 Not found error.

Please help out with this simple task. Thanks.
Note: VM is running on Centos x64 server 7.7

--
Regards,

​ICE
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>