nginx - How to browse to download directory through web browser

somus1735

Member
May 25, 2018
833
0
16
Hi
I was using Apache till today but because of performance issues, many people suggested me to switch to nginx. formerly I had added a symlink to my download directory :

Code:
ln -s /home/username/downloads /var/rutorrent/downloads
and added this piece of code to apache config file :

Code:
<Directory /var/rutorrent/downloads>
Options FollowSymLinks Indexes
AllowOverride none
Order allow,deny
Allow from all
</Directory>
and so I could open firefox and browse to my download direcotry using this url : http://serverIP/downloads

now I want to do the same thing with nginx. I created the symlink with the same command :

Code:
ln -s /home/username/downloads /var/rutorrent/downloads
but I do not know what to add to nginx.conf file. could you please help me?I'm really confused.
thanks in advance
 

somus1735

Member
May 25, 2018
833
0
16
Resolved
Much Much simpler than what I thought.Just added an autoindex directive to config file