host a website on dedicated seedbox

das329717

Member
May 25, 2018
928
0
16
Hi,
I have a dedicated seedbox with root access, Ubuntu 12.04 (64-bit). Running rtorrent, ruTorrent webui, nginx, webmin.
everything works good as far as torrenting. But I also want to be able to host a website.

So right now if I go to my.ip.add.ress from browser ==> it'll ask for credentials and show a hyperlink to my.ip.add.ress/rutorrent
port being used is 80 i.e. my.ip.add.ress:80 ==> same output.

Is there a way to -while running ruTorrent- host a domain name? I don't care about hosting multiple domains, just one domain name associated with server ip.

Thanks
 

jith45

Member
May 25, 2018
960
0
16
You understand that your question is not exactly an rutorrent support question, right?
Anyways, since you write that inserting your ip address redirects to ip/rutorrent then I suppose that there is a re direction either from the server control panel (cpanel, plesk or whatever it has...), or in your www folder there is an index.htm (or html or php) which redirects to www/rutorrent.
You must cancel this redirection and then create a new folder under www with the site's files. Or drop site's files under www/ if you want to access the site simply by entering your ip address. After doing this, under www/ you will have the site's files and folders and an rutorrent folder.
Afterwards, of course, you will need to enter the full path to enter rutorrent webui, e.g. www.ipadress/rutorrent and not only www.ipaddress, since the latter will bring up your website.
Hope this helps...
 

das329717

Member
May 25, 2018
928
0
16
Hi,
thanks for trying to help. I tried that approach but unfortunately it won't dork. If I change the redirects in nginx conf then the site ip will work and direct to public html folder as it should but the rutorrent will stop working i.e. ip/rutorrent will give 404 Not Found.
 

das329717

Member
May 25, 2018
928
0
16
Well that's strange... huh.gif
Can you see that under public html there is actually an rutorrent folder with the necessary files?
You can also as your seedbox support if what you want to do is possible.
Since it is a seedbox, it is maybe configured to not support the normal webserver behavior. I can't be sure because I don't have a seedbox so I can't check the configuration.
I know that there are people in here who are renting seedboxes and/or are working for companies who rent seedboxes, so perhaps they can offer more assistance than me to this matter.. Sorry..
 

das329717

Member
May 25, 2018
928
0
16
problem solved. I had to add a server block to the nginx config file with a different listen port than 80 e.g. 81

Code:
server {
listen 81;
charset utf-8;
server_name domain.com;
location / {
root /home/admin;
}
and I would access my files by going to domain.com:81/files or ip:81/files
at the same time htt9://ip still points to rutorrent (seedbox) smiley.gif