Possible to force a template to use HTTPS/SSL?

Author Message

Christopher Thorjussen

Wednesday 21 May 2003 5:22:11 pm

I'm thinking for instance about the admin site, which has it's own template etc - I want all communication on this site to be using https and not normal http.
say i go to http://www.mysite.com/admin
Is there a way to force the page to be reloaded with https? using the template? other ways?

Bruce Morrison

Wednesday 21 May 2003 11:47:38 pm

This is something that should be done on a site by site configuration basis not in the templates.

I'm looking at adding a configuration directive that if enabled checks if the connection should be secure and redirects to the https:// site.

I'll post it to the contributions when I've finished - probably in a week or so.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:11:18
Script start
Timing: Jan 18 2025 11:11:18
Module start 'layout'
Timing: Jan 18 2025 11:11:18
Module start 'content'
Timing: Jan 18 2025 11:11:19
Module end 'content'
Timing: Jan 18 2025 11:11:19
Script end

Main resources:

Total runtime0.8008 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0469152.6406
Module start 'layout' 0.00650.0029 740.687539.4766
Module start 'content' 0.00940.7898 780.1641520.4297
Module end 'content' 0.79910.0017 1,300.59388.1250
Script end 0.8008  1,308.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4205160.0002
Check MTime0.00140.1760160.0001
Mysql Total
Database connection0.00110.131710.0011
Mysqli_queries0.758294.6741540.0140
Looping result0.00050.0570520.0000
Template Total0.774296.720.3871
Template load0.00210.267720.0011
Template processing0.772096.401920.3860
Template load and register function0.00020.022010.0002
states
state_id_array0.00030.038010.0003
state_identifier_array0.00100.129520.0005
Override
Cache load0.00180.2191130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.077320.0003
Fetch class attribute name0.00080.103730.0003
XML
Image XML parsing0.00040.053920.0002
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0919160.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs