Odd problem with SSL zones

Author Message

Daniel Frey

Thursday 27 August 2009 10:40:11 am

I decided to install a SSL certificate on the webserver for use while people are logging in and registering.

I came across a very strange bug, and I can't figure out where it's coming from. My SSL config looks like this:

SSLZones=enabled
SSLSubtrees[]
ModuleViewAccessMode[]
ModuleViewAccessMode[content/*]=keep
ModuleViewAccessMode[layout/*]=keep
ModuleViewAccessMode[user/login]=ssl
ModuleViewAccessMode[user/register]=ssl

As soon as I enabled <i>SSLZones</i>, user logins broke. For some strange reason, it inserts an extra <b>index.php/eng</b> in the URL, so you get a "can't find the modules" error:

http://<domain>/index.php/eng/index.php/eng/

I've been scrounging through the ini files and I can't see where this is being inserted. Disabling SSLZones makes the problem go away.

If you try checking the "Login to administration interface" it won't automatically login like it should, it just directs you to the administration login page. Try logging in there and you get a similar error:

http://<domain>/index.php/index.php/ezwebin_site_admin/

On that one there's an extra <b>index.php</b> in the URL.

Anyone have any clue as to what's going on?

Daniel Frey

Tuesday 01 September 2009 12:10:17 pm

After much head-scratching, I discovered the default values written to the SiteURL variable in a myriad of places were incorrect. Correcting them made the problems go away.

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 19:22:33
Script start
Timing: Jan 18 2025 19:22:33
Module start 'layout'
Timing: Jan 18 2025 19:22:33
Module start 'content'
Timing: Jan 18 2025 19:22:34
Module end 'content'
Timing: Jan 18 2025 19:22:34
Script end

Main resources:

Total runtime0.8469 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 588.0313152.6406
Module start 'layout' 0.01140.0033 740.671939.4609
Module start 'content' 0.01460.8302 780.1328425.5938
Module end 'content' 0.84490.0020 1,205.72668.1641
Script end 0.8469  1,213.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4435160.0002
Check MTime0.00140.1683160.0001
Mysql Total
Database connection0.00100.123510.0010
Mysqli_queries0.790893.3814520.0152
Looping result0.00050.0615500.0000
Template Total0.796094.020.3980
Template load0.00270.314020.0013
Template processing0.793393.675820.3967
Template load and register function0.00020.026410.0002
states
state_id_array0.00150.181910.0015
state_identifier_array0.00240.278620.0012
Override
Cache load0.00210.2470210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.073810.0006
Fetch class attribute name0.00370.441820.0019
XML
Image XML parsing0.00010.012610.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00480.5706100.0005
String conversion0.00000.001240.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs