This forum has been archived. All content is frozen. Please use KDE Discuss instead.

ktorrent web interface ssl https

Tags: None
(comma "," separated)
mardicas
Registered Member
Posts
7
Karma
0

ktorrent web interface ssl https

Tue May 24, 2011 10:52 am
Hello,

is there a way to run the web interface on SSL?


One way would be to do it via an apache proxy? Anyone has done this?
mardicas
Registered Member
Posts
7
Karma
0
I answer my own question:

Enable proxy on apache2 webserver, add these lines to your SSL virtual host:

Code: Select all
<Location /kt/>
ProxyPass http://localhost:8080/
</Location>


This will forward requests to /kt/ as if they are sent to :8080.

If you have a successful login it will redirect you to /interface.html, that is not good, proxy_html_rewrite did not help either, i think because this is some javascript hackery going on.
Anyways simple solution is to add a file "interface.html" to your webroot (eg: /var/www/localhost/htdocs/interface.html)
Code: Select all
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=/kt/interface.html">
</head>
<body>
</body>
</html>
mardicas
Registered Member
Posts
7
Karma
0
It seems this does not work 100%, i can see the torrents but cant delete them. It would probably be easier to make the javascripts check the locationbars url and then generate a request, instead just go for document root ("/")
George
Moderator
Posts
5421
Karma
1
SSL is not supported at the moment, though adding it, should not be that much work.
mardicas
Registered Member
Posts
7
Karma
0
I am working on a fix for the ktorrent web interface to work with proxys. Almost done. Will share .-)


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]