プロジェクト

全般

プロフィール

Vote #63601

未完了

redmine sends http on forms on https server

Admin Redmine さんがほぼ2年前に追加.

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2008/07/12
期日:
進捗率:

50%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
1628
author_id:
850
assigned_to_id:
0
comments:
8
status_id:
8
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

I have the following configuration:
Glassfish v2UR2
jruby 1.1.2
rails 2.0.2

I have a http-listener on port 443 with security enabled.
Applications like xwiki, spree (rails shopping system) and others work fine.
redmine is supposed to be the root application on the system.

I had it all running fine with redmine-0.7.0 and updated to 0.7-stable from svn (I am running revision 1651). Now https://mywebserver/ redirects to http://mywebserver/login which of course does not exist.
When I manage to login by changing urls by hand, website links work fine, but all forms, like creating issues etc, still try to send to a http address instead of a https address.
THis was nt happening with 0.7.0


journals

Have you checked settings.yml after update?
<pre>
protocol:
default: https
</pre>
Maybe it was changed by svn update?
--------------------------------------------------------------------------------
Liwiusz, this setting has nothing to do with redirects.
It's only used to generate links in emails.
--------------------------------------------------------------------------------
I had the same issue, I use apache forwarding to mongrel, where apache talks http to mongrel, this confuses mongrel into rewriting all urls to http.

For me the fix was adding this:

RequestHeader set X_FORWARDED_PROTO 'https'

In the apache config before the rewrite proxy rule

Hope this helps
--------------------------------------------------------------------------------
Check #1145 for my Apache config.
--------------------------------------------------------------------------------
Closing, issue is caused by a misconfigured web server and author hasn't responded. Reopen the issue if you are still having problems and please include any webserver configuration configuration. Thanks.
--------------------------------------------------------------------------------
I have the same problem.
I'm using nginx+modrails.
I've configured _ONLY_ https and I get can't connect when redirected to http.
I've tried to put add_header X_FORWARDED_PROTO 'https'; for the vhost but nothing happens.
Redmine still redirects me to http:// instead of the https.
This only happens when redmine makes redirect_to. Forms are working.
I've tried to set
protocol:
default: https
in lib/redmine/hook.rb but nothing happened. same thing.
any ideas how to achieve redirect_to to work with correct URI scheme?
--------------------------------------------------------------------------------
Also noticed that I get url rewritten even in return url (maybe because default scheme is http)
http://redmin.dom.eu/login?back_url=http%3A%2F%2Fredmin.dom.eu%2Fprojects%2Fshow%2Fsomeproject/
--------------------------------------------------------------------------------
valqk valqk wrote:

> I've tried to put add_header X_FORWARDED_PROTO 'https'; for the vhost but nothing happens.

Just to clarify.
Correct nginx config is:

<pre>
location /redmine {
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Proto https;
}
</pre>

X-Forwarded-Proto not X_Forwarded_Proto

--------------------------------------------------------------------------------


related_issues

relates,Closed,1145,https - not all links use https but http
relates,Closed,672,https and some application part

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0