Welcome! Log In Create A New Profile

Advanced

symlinks in nginx

Posted by archiver 
symlinks in nginx
November 24, 2011 05:15PM
Hi
I am a complete beginner and know a little about nginx. I am migrating from apache. when I was using apache I used symlinks and configured apache to access directories outside root. I created a symlink with the following command

ln -s /home/username/downloads /var/rutorrent/downloads

and the I added this bit of code to httpd.conf :

<Directory /var/rutorrent/downloads>
Options FollowSymLinks Indexes
AllowOverride none
Order allow,deny
Allow from all
</Directory>


my root directory was "/var/rutorrent"

so when I entered http://serverip/downloads, I could access "/home/username/downloads" which was outside root directory.

now I switched to nginx and I have no idea how I should do the same in nginx.

could you please help me configure nginx.conf so i can access download directory?


Thanks in advance
Regards
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
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