TTRss + SSL Proxy

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
rom
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 07 Jul 2013, 17:25

TTRss + SSL Proxy

Postby rom » 07 Jul 2013, 17:42

Hey guys,

I am using TTRSS since maybe 3 month without problems at my shared hoster named all-inkl.com
Therefore I created a subdomain http://rss.mydomain.tld which points to a subfolder of my webspace /rss.mydomain.tld/{TTRSS files in here}
Note that TTRSS was never located in a subfolder, just in the subdomain root.

Ok, so I want to switch to SSL. My provider offers an SSL Proxy, which I just activated. Now I can access TTRSS at the HTTPS domain
https://ssl-account.com/rss.mydomain.tld/

I changed the config.php accordingly:

Code: Select all

define('SELF_URL_PATH', 'https://ssl-account.com/rss.mydomain.tld/');


I also want to redirect everyone who still uses the old HTTP Domain rss.mydomain.tld to the new SSL Adress. Therefore I changed the TTRSS .htaccess file, and added these lines:

Code: Select all

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-FORWARDED-SERVER} !^ssl-account\.com$ [NC]
RewriteRule ^(.*)$ https://ssl-account.com/rss.mydomain.tld/$1 [R=301,L]


This works quite good. I am forwarded to the new SSL Domain, using HTTPS, and there is no problem using TTRSS as usual.

BUT... if I logout, and try to login to TTRSS again, I get forwarded to http://ssl-account.com/index.php/
Also, sometimes, the server just shows a "BAD REQUEST" Error and forwards me to https://ssl-account.com/; but I guess thats just a consequence for pointing to the wrong folder.

So, Login never works. But once I get this error, I can manually type the address http://ssl-account.com/rss.mydomain.tld/ and use TTRSS, so it looks like I have been authenticated. To me it looks like just the final forwarding after login goes into the root folder instead of a subdirectory...

Any ideas how to fix this? Is this a problem regarding the proxy? Looks like the path /index.php is hardcoded somewhere....

Osiris
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 02 Jul 2013, 01:24

Re: TTRss + SSL Proxy

Postby Osiris » 22 Sep 2013, 10:50

Some problem here (tt-rss 1.10). Any fix for this?

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: TTRss + SSL Proxy

Postby sleeper_service » 22 Sep 2013, 19:04

fix your broken webserver config.

leibi
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 26 May 2013, 23:09

Re: TTRss + SSL Proxy

Postby leibi » 10 Jan 2014, 12:31

Did someone find a fix for this?

I'm getting redirected on login from
https://ssl-account.com/mydomain.net/TT-RSS/index.php

to
https://ssl-account.com/tt-rss/index.php

rom
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 07 Jul 2013, 17:25

Re: TTRss + SSL Proxy

Postby rom » 10 Jan 2014, 13:17

nope, never found one. My workarround: Even when I've been redirected to the wrong url, the login worked, so I manually typed the correct address to view TTRSS.

Recently I switched from all-inkl to domainfactory. There I can use an (unsigned) SSL address without any proxy (https://mydomain.net)


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 3 guests