Welcome! Log In Create A New Profile

Advanced

Host public folder in nginx

Syed Hamid Rasool via nginx
December 13, 2016 03:20AM
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
Subject Author Posted

Host public folder in nginx

Syed Hamid Rasool via nginx December 13, 2016 03:20AM

Re: Host public folder in nginx

Francis Daly December 13, 2016 03:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready