ezDebug and eZAudit not supporting X-Forwarded-For (Varnish problem)

Author Message

Marko Žmak

Thursday 16 June 2011 2:17:57 am

It seems like eZDebug and eZAudit get the ip of the visitor only from the REMOTE_ADDR server variable. This causes problems when using Varnish since the only IP address that is accessing the eZP pages is the IP of the varnish server.

It should be configurable wether to use RMOETE_ADDR or HTTP_X_FORWARDED_FOR... What's the point of the audit log where all entries have the same IP address?

So...

Is there currently a workaround for this?

Should we add this as enchancement for eZP?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 02:03:27
Script start
Timing: Jan 18 2025 02:03:27
Module start 'layout'
Timing: Jan 18 2025 02:03:27
Module start 'content'
Timing: Jan 18 2025 02:03:28
Module end 'content'
Timing: Jan 18 2025 02:03:28
Script end

Main resources:

Total runtime0.7076 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.1719152.6563
Module start 'layout' 0.00650.0032 740.828139.5313
Module start 'content' 0.00960.6963 780.3594467.5703
Module end 'content' 0.70590.0016 1,247.92978.0938
Script end 0.7075  1,256.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4545160.0002
Check MTime0.00150.2120160.0001
Mysql Total
Database connection0.00070.100310.0007
Mysqli_queries0.668794.5077460.0145
Looping result0.00040.0555440.0000
Template Total0.676495.620.3382
Template load0.00210.298020.0011
Template processing0.674395.298120.3372
Template load and register function0.00010.015110.0001
states
state_id_array0.00140.194610.0014
state_identifier_array0.00070.103620.0004
Override
Cache load0.00170.241390.0002
Sytem overhead
Fetch class attribute can translate value0.00050.076810.0005
Fetch class attribute name0.00080.109920.0004
XML
Image XML parsing0.00050.069210.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.1174180.0000
String conversion0.00000.001140.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs