how to download files through http?

lisas4567

Member
May 25, 2018
773
0
16
Hi
I'm so glad to find rutorrent. it is much lighter than my previous torrent client and more feature rich. by the way I want to know if it is possible to download files through http and not ftp? I'm not a linux expert but I know some basics. I am currently using rutorrnet on centos 5.3 and apache web server.
could you please help me?
thanks in advance
 

randac56

Member
May 25, 2018
915
0
16
you only need to install plugin data and then you click on your torrent and in files tab : right click on fileyou want and download.

++
 

lisas4567

Member
May 25, 2018
773
0
16
you only need to install plugin data and then you click on your torrent and in files tab : right click on fileyou want and download.

++
thanks for prmpt answer but I need to download files with download manager. get data seems to be able to download only one file at a time.I need a way to select several files and download the with download manager. for example when I used torrentflux, I used mysite.com/torrentflux/downloads/user/XXXX
to access downloaded files and simply dwonload them.
is this possible with rutorrent?
thanks
 

saroos1

Member
May 25, 2018
718
0
16
Only when you place your downloads in the www folder/subfolder
Or make a symlink in www to the location.

But why don't you use FTP ??
 

lisas4567

Member
May 25, 2018
773
0
16
Only when you place your downloads in the www folder/subfolder
Or make a symlink in www to the location.

But why don't you use FTP ??
I know it seems strange but because of limitations from my ISP I can not download very fast from ftp. could you please explain more what should I do? what do you mean by "Only when you place your downloads in the www folder/subfolder" or "make a symlink in www to the location"
thanks
 

lisas4567

Member
May 25, 2018
773
0
16
set up something like webdav for your download directory.
1) I made a directory with this path: /var/rutorrent/downloads (mkdir -p /var/rutorrent/downloads)
2) then ran this command : chown apache:apache /var/rutorrent/downloads
3) Then : chmod 777 /var/rutorrent/downloads

but when I enter this address in my browser : http://myserverip/downloads , I get a 403 Forbidden : you don't have permission to access /downloads/ on this server.

I access my rutorrent installation from this address : http://myserverip/rutorrent

could you please help me resolve this issue?
 

randac56

Member
May 25, 2018
915
0
16
you need to add a directory entry to your apache config. something like this:


Code:
<Directory /var/rutorrent/downloads/>
Options FollowSymLinks
AllowOverride None
</Directory>


if you want to put auth on the locaton, you could also do something like this (but you'll need to create the password file as well)
Code:
<Location /var/rutorrent/downloads/>
AuthType Basic
AuthName "files"
AuthUserFile /etc/users.htpasswd
Require valid-user
</Location>
 

lisas4567

Member
May 25, 2018
773
0
16
you need to add a directory entry to your apache config. something like this:


Code:
<Directory /var/rutorrent/downloads/>
Options FollowSymLinks
AllowOverride None
</Directory>


if you want to put auth on the locaton, you could also do something like this (but you'll need to create the password file as well)
Code:
<Location /var/rutorrent/downloads/>
AuthType Basic
AuthName "files"
AuthUserFile /etc/users.htpasswd
Require valid-user
</Location>
Thanks.
I added directory to : /etc/httpd/conf/httpd.conf but nothing happened.Then I found that there is a file here : /etc/httpd/conf.d/rutorrent.conf

ut seems that rutorrent settings are saved in this file.I added directory t this file and restarted apache but again nothing happened.
could you please help me.
thanks
 

simur612

Member
May 25, 2018
879
0
16
well all i can say is you probably made a mistake somewhere.


Its going to be difficult to really pinpoint that without more info....Read the apache docs, they explain everything you need.
 

saroos1

Member
May 25, 2018
718
0
16
Ok, I set this up last night after a lot of mucking about.
It turned out to be a pretty easy solution.

This made by rutorrent site have the download directory at https://bit-mange.com/downloads
The location my torrents were being downloaded to was:/var/chroot/sftp/home/sftp/incoming

I modified /etc/apache2/sites-available/rutorrent by adding the following lines:

Code:
Alias /downloads /var/chroot/sftp/home/sftp/incoming
<Directory /var/chroot/sftp/home/sftp/incoming>
Options Indexes MultiViews
AllowOverride All
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
After saving the file, I reloaded the config for apache by running the command in terminal:
Code:
sudo /etc/init.d/apache2 reload
Thats it! Let me know if you have any questions smiley.gif
 

randac56

Member
May 25, 2018
915
0
16
smiley.gif , hi , what if i use nginx , what config file i might change ? ,

and i use this way by now :

Code:
alias http='python -m SimpleHTTPServer'
 

peshua19

Member
May 25, 2018
897
0
16
To unprotect a location that is a child of a protected location and assuming the protected location structure looks something like this

Code:
<Location />
AuthType Digest
AuthName "whatever"
AuthDigestDomain "/var/www/html" http://my.host.name
AuthDigestProvider file
AuthUserFile "/my/password/file"
Require valid-user
SetEnv R_ENV "/var/www/html"
</Location>

try adding this just after it and inside the same <VirtualHost ...> block
Code:
<Location /my/unprotected/path>
Allow From All
Satisfy Any
</Location>
And then reload or restart Apache

Any requests for pages under my.host.name/my/unprotected/path will now not ask for a username and password

Directives are for Apache - Other http servers may vary