Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason a Redmine installation keeps redirecting some https requests to http.

I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone to. What is the syntax for that.

I am trying this link Using Nginx how do I redirect single URIs from http to https? as well, but this is the first to come to mind.

share|improve this question

First at all, check your Redmine's configuration:

Look at Administration > Settings > General Then Protocol.

It should be set to HTTPS and not HTTP. This is certainly your problem.

Otherwise, for nginx if you want to redirect http trafic to https:

server {
    listen       80;
    rewrite ^$request_uri? permanent;
server {
    listen  443 default ssl;
share|improve this answer
The Protocol is properly set. I think it is a bug in Redmine. It only happens on certain 1. the top level project and 2. when I submit changes or create a new issue – vfclists Oct 23 '12 at 19:08
Strange behaviour... I've never seen that yet ! What the logs are saying ? – undx Oct 24 '12 at 8:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.