Edgewall Software

Ticket #3208 (closed defect: duplicate)

Opened 2 years ago

Last modified 20 months ago

Multirepository on https redirect to http

Reported by: otik@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.9.5
Severity: normal Keywords:
Cc:

Description

I'm using Trac 0.9.5 on Debian etch, apache2, mod_python, https://SERVER/. I'm using multiple repositories. When I select repository trac link https://SERVER/project it redirect me to http://SERVER/project/. Then I have to rewrite http:// to https:// from this point it works well.

Attachments

Change History

Changed 2 years ago by otik@…

You may try it trac@printflow

Changed 2 years ago by lindig@…

This is the same issue as #3207. I'd argue that tracd should have an optional config entry to hard-code the URL scheme to use to avoid the guessing done in web/api.py.

Changed 2 years ago by otik@…

  • This may be good. But more setup, make harder to use, but if without it does work it is necessary
  • sorry I'm not pythonist
  • Why in repository list is link to /project instead of /project/ ?

Changed 2 years ago by otik@…

I was suppriced why addresses https://SERVER/project are rewrited to http://SERVER/project/ so

I hack this by adding to Apache:

  RedirectMatch ^/([^/]+)$ /$1/

I'm not sure what I done. I have just follow apache URL rewriting example. URL rewriting

I hope that somebody will add this to help or solve it in another (normal) way.

Changed 2 years ago by Ilia Kantor

Trac learns that its using https by checking HTTPS env. Actually, it is set by mod_ssl, but AFTER trac already finished. So it sets scheme to http and uses it to make urls.

The right fix would be to use "SetEnv HTTPS 1" in your CGI config or another setting of same kind in another config, so trac will read it and be happy.

PS. bug exists at 0.10

Changed 2 years ago by otik@…

TNX this hepls (too).

May you add this instruction to help about how to configure apache2 to work with trac ? New user will be informed before problems...

Changed 20 months ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

See #2553.

Add/Change #3208 (Multirepository on https redirect to http)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.