Changes between Version 11 and Version 12 of PermRedirectPlugin
- Timestamp:
- Nov 26, 2015, 10:09:18 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PermRedirectPlugin
v11 v12 18 18 19 19 If you have any issues, create a 20 [ http://trac-hacks.org/newticket?component=PermRedirectPlugin new ticket].20 [/newticket?component=PermRedirectPlugin new ticket]. 21 21 22 22 [[TicketQuery(component=PermRedirectPlugin&group=type,format=progress)]] 23 23 24 == Download ==24 == Download 25 25 26 Download the zipped source from [ download:permredirectplugin here]. The eggs are available for installation as pypi:TracPermRedirect.26 Download the zipped source from [export:permredirectplugin here]. The eggs are available for installation as pypi:TracPermRedirect. 27 27 28 == Source ==28 == Source 29 29 30 You can check out PermRedirectPlugin from [ http://trac-hacks.org/svn/permredirectplugin here] using Subversion, or [source:permredirectplugin browse the source] with Trac.30 You can check out PermRedirectPlugin from [/svn/permredirectplugin here] using Subversion, or [source:permredirectplugin browse the source] with Trac. 31 31 32 32 == Installation 33 33 34 To enable, add the following to the `trac.ini` file: 35 {{{ 36 #!ini 34 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 35 36 To enable, add the following to your `trac.ini` file: 37 {{{#!ini 37 38 [components] 38 39 permredirect.* = enabled 39 40 }}} 40 41 41 This will enable the "redirect to login screen on permission error" feature. 42 This will enable the "redirect to login screen on permission error" feature. The "HTTPS only" feature will not be enabled. 42 43 43 44 == Configuration 44 45 45 46 To additionally enable the "HTTPS only" feature, use the following in the `trac.ini` file: 46 {{{ 47 #!ini 47 {{{#!ini 48 48 [permredirect] 49 49 redirect_login_https = true … … 51 51 52 52 To enable the "HTTPS only" feature and disable the "redirect to login screen on permission error" feature, use the following in the `trac.ini` file: 53 {{{ 54 #!ini 53 {{{#!ini 55 54 [permredirect] 56 55 redirect_login = false … … 63 62 64 63 It is also possible to implement a similar feature without this plugin at all, using `RewriteRules` in your Apache configuration. This alternative approach must be used if you are handling login through the Apache web server. Your Apache configuration would include lines like: 65 {{{ 64 {{{#!apache 66 65 # Redirect all login pages to https 67 66 RewriteCond %{HTTPS} off … … 69 68 }}} 70 69 71 Note the `[NE]` (no-escape) flag, this is important! See "Frequently Asked Questions" below.70 Note the `[NE]` flag (no-escape), this is important! See "Frequently Asked Questions" below. 72 71 73 For more details, see the various example configurations posted in comments at http://trac.edgewall.org/ticket/473372 For more details, see the various example configurations posted in comments at [t:#4733]. 74 73 75 74 == Frequently Asked Questions