Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a dedicated seedbox running rtorrent with rutorrent webui,nginx webserver and Webmin . Right now nginx listens to port 80 and server ip points to rutorrent webui. I would like to use the seedbox to http stream some of the files in the downloads folder of rutorrent. I've seen people suggesting the use of server blocks or virtual hosts like here but that requires 2 domain names and I only have 1 domain name to use on this server ip

since port 80 is taken over by the rutorrent to function properly, I think another way to do it is to open a new port like ip.add.re.ss:1234/downloads/file01.flv

so I opened up nginx conf and edited it like this: note: top server info is for the rutorrent and I added the bottom server info

    server {
            listen      80;
            server_name localhost;
            auth_basic "My ruTorrent web site";
            auth_basic_user_file "/usr/local/nginx/rutorrent_passwd";

            location ~ ^/rutorrent/(?:share|conf) {
                    deny all;
            }

            location ~ /\.ht {
                    deny all;
            }

            location ~ /\.svn {
                    deny all;
            }

            location / {
                    root /var/rutorrent;
                    index index.php index.html index.htm;
            }

            location ~ \.php$ {
                    root "/var/rutorrent";
                    fastcgi_pass unix:/etc/phpcgi/php-cgi.socket;
                    fastcgi_index index.php;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    include fastcgi_params;
            }
    }
  server {
listen      80;
charset     utf-8;
server_name domain.co;
root /usr/local/nginx/html;
location / {
proxy_pass http://dmoain.co:2346;
 }

However, if I go to http://dmoain.co:2346 I get Oops! Google Chrome could not connect to dmoain.co:2346

and if I just point to dmoain.co I get 502 Bad Gateway so I am not sure what to do to make it work. Thanks for any tips!

share|improve this question
proxy_pass http://127.0.0.1:2346; verify that your seedbox app is running with lsof -i :2346 – rhasti Dec 25 '12 at 23:27

closed as not constructive by EEAA, petrus, mdpc, Michael Hampton, Iain Dec 26 '12 at 9:23

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

Browse other questions tagged or ask your own question.