changing SELF_URL has no effect

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
cithrix
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 05 Apr 2013, 17:31

changing SELF_URL has no effect

Postby cithrix » 05 Apr 2013, 17:43

Hi,

I switched from Google Reader to a self-hosted tt-rss and I'm very happy about it.
But I have the following problem:

I installed tt-rss to the URL http://domain.tld/tt-rss/ and it is working fine.
On my server I can use SSL if i change the URL to something like https://tt-rss.domain.tld/

As I want to use SSL now, I changed the config.php from

Code: Select all

define('SELF_URL_PATH', 'http://domain.tld/tt-rss/');

to

Code: Select all

define('SELF_URL_PATH', 'https://tt-rss.domain.tld/');


If I browse to https://tt-rss.domain.tld/, I'm redirected to the old URL http://domain.tld/tt-rss/.

Is there another change, that I have to do? In the mysql database I found no entry for the site URL...

Thanks for your help.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: changing SELF_URL has no effect

Postby fox » 05 Apr 2013, 18:01

Self url path is not used for any kind redirection as far as I can remember, fix your webserver.

cithrix
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 05 Apr 2013, 17:31

Re: changing SELF_URL has no effect

Postby cithrix » 05 Apr 2013, 18:13

Thanks for your fast reply.

I don't think, that it is a problem with my webserver as I only have this problem with tt-rss. Other projects (i. e. owncloud) runs fine on the SSL URL.
Is there another place where the site url is stored on installation of tt-rss?

Maybe redirection is the wrong word. If I browse https://tt-rss.domain.tld/ the adress is just changed to the old one.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: changing SELF_URL has no effect

Postby fox » 05 Apr 2013, 18:25

>Is there another place where the site url is stored on installation of tt-rss?

Nope.

User avatar
sboulema
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 22 Mar 2013, 12:30

Re: changing SELF_URL has no effect

Postby sboulema » 05 Apr 2013, 18:48

Is the Apache virtual site correctly configured?
Do you use mod_rewrite and mod_proxy?

jmozmoz
Bear Rating Trainee
Bear Rating Trainee
Posts: 26
Joined: 14 Apr 2013, 18:07

Re: changing SELF_URL has no effect

Postby jmozmoz » 21 Apr 2013, 16:46

I found this for openshift: https://www.openshift.com/kb/kb-e1044-h ... c-to-https

Add this to your .htaccess file:

Code: Select all

RewriteEngine on 

RewriteCond %{HTTP:X-Forwarded-Proto} !https 
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L] 


Return to “Support”

Who is online

Users browsing this forum: No registered users and 9 guests