<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">I have NGINX installed on a VPN and I would like to access the "downloads" folder via https. I followed instructions given to me as follows:</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">In order to download your files from your vpn, you will move the download folder of deluge into nginx www folder. For example: downloads folder (/usr/share/nginx/www/downloads). Your files will be accessible at <a href="http://ip-address/downloads" class="">http://ip-address/downloads</a>.</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Change the configuration file is at /etc/nginx/sites-available/default to allow the downloads folder to be accessable via https.</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Edit that file and you will see a line like root /path/to/root/folder/here <-- change this to your download location.</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">In that file I replaced</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">root /usr/share/nginx/html;</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">index index.html index.htm;</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">with</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">root /usr/share/nginx/www/downloads</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">You also need to enable autoindex. By default, nginx will not list the files inside a folder (security reason).</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Add these lines to the default file:</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">autoindex on;</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">autoindex_exact_size off;</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">autoindex_localtime on;</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Which I did.</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">So far I cannot access the downloads folder and thought I would look for some help here.</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Thanks very much</span><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><br style="clear: both; font-family: Arial; font-size: medium; widows: 1;" class=""><span style="font-family: Arial; font-size: medium; widows: 1; background-color: rgb(255, 255, 255);" class="">Henry</span></body></html>