Downloads folder access to public

I tried to follow the procedure to create a public directory but the directory still asks for username and password.

Please help.

Try clearing your browser cache. It’s possible that it is still caching the initial access to your directory.

Clearing browser cache is not working with the public directory created. Tried several browsers and private mode too.

Not sure why you’d be recieving any sort of authentication as if you follow the guidelines above you are not even using the same auth directories that QuickBox/ruTorrent are using.

Could you double check and ensure that you do not have any auth lines such as:

AuthType Digest
  AuthName "rutorrent"
  AuthUserFile '/etc/htpasswd'
  Require user USERNAME

Also, have you done a restart of apache?

I recently found that thread and did what was posted but I’m getting a [quote]Job for apache2.service failed. See “systemctl status apache2.service” and “journalctl -xe” for details.[/quote] error when I do the service apache2 reload



Staff edit: Moved to relavant topic

@Evoley, could you please give us the output of cat /etc/apache2/sites-enabled/aliases-seedbox.conf?
Apache is more than likely not starting due to a small typo.

i wanted to post an update to this to show how i solved this problem. I followed JSolo’s instructions except modified it a bit.

Edit your /etc/apache2/sites-enabled/aliases-seedbox.conf like so:

Alias /publicDL "/var/www/publicDL/"
<Directory "/var/www/publicDL/">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
</Directory>

after doing that, create a publicDL folder in your user’s home directory.
cd ~/
mkdir publicDL

finally, let’s create a symlink between this folder to the apache2 folder
sudo ln -s ~/publicDL/ /var/www

What this essentially does is create a publicDL folder in your user’s home directory to which you can move files you want to appear public i.e http://serverip/publicDL

I managed to get it fixed tho users are able to access the quickbox dashboard which is something I don’t want. Is there any way I can disallow that?

At the moment additional created users have access to dashboards by default. Their dashboards however, lack the feature set of the master account and thus can use it for basic monitoring and link navigation. You could technically remove the ability for them to access the dashboard in general, however, that is a separate topic entirely.

This works tho the way that i did it overwrites the default user I created when setting up. The way I did was basically createseedboxuser , edit aliases-seedbox.conf, then reload apache.

Just wanted to add a note here for people who found this page interested in making the folder their torrents download to public while keeping the rest locked away.

If you edit the file: /etc/apache2/sites-enabled/aliases-seedbox.conf

Find the section that links to your downloads folder (below this line: Alias /derp.rtorrent.downloads "/home/derp/torrents/rtorrent/")

Then remove the lines for authentication and add the line for Require all granted. It should look like this when you’re done:

Alias /derp.rtorrent.downloads "/home/derp/torrents/rtorrent/"
<Directory "/home/derp/torrents/rtorrent/">
  Options Indexes FollowSymLinks MultiViews
  Require all granted
  php_admin_value engine Off
</Directory>

When you’re done, run: service apache2 restart

Thanks :slight_smile: Ducky

This will work, however; please take caution that this method will reveal your entire downloads directory. The purpose for the symlink to the public folder is largely due to being selective over the items that are placed within this visible directory. Although, if you want all data/download to be public, then absolutely this will work! Thanks @duk242 :smiley:

1 Like

i just want to add a userfrom the htpasswd file who can access the folder.
but it didnt work just adding the user and passwd into the file

what do i have to edit in the aliases file ?

Require user <username> is the line that sets access permissions for logged in users

can i insert two lines for that ?

or how do i list 2 or more users ?

to add multiple users.

require user martin jane joe jack

hi, i successfuly create public download access using ondansetron solution.
the problem is every time i run RUN UPDATER in quickbox dashbord, it revert back to original. (it removes the public alias line)
so i have to edit again the aliases-seedbox.conf file.
how can i make this change permanent?

Change this to something like /etc/apache2/sites-enabled/public-download.conf and you should be ok.

it works!
thank you @JMSolo :slight_smile:

Hello !

I know this topic is old but it is exactly the subject of my question.
I followed your tips and it worked for a long time on all browers. Thank you for that !

Fact is, since few months, this solution doesn’t work on my firefox anymore. But it’s still working on chrome, edge, opera, safari, etc. Only firefox is asking username and password. I didn’t change anything.
If someone has an idea to debug this, it would be awesome !