Installation on Nginx

Author Message

Boris HUISGEN

Tuesday 20 October 2009 4:00:33 am

This is my configuration file to host ezpublish on my nginx server.

server {
 listen       80;
 server_name  ezpublish.bhuisgen.my.domain;
 root /Users/bhuisgen/Sites/ezpublish/www/html;
 index index.php;

 if (!-f $request_filename) {
    rewrite ^(.*)$ /404;
 }

 location ~ "^/[^/]*\.php$" {
    set $script "index.php";

    if ( $uri ~ "^/(.*\.php)" ) {
       set $script $1;
    }

    fastcgi_pass   unix:/opt/local/var/run/nginx/fcgi-php.sock;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME /Users/bhuisgen/Sites/ezpublish/www/html/$script;
    include        fastcgi_params;
 }

 location / {
    rewrite "^/var/storage/(.*)$" "/var/storage/$1" break;
    rewrite "^/var/([^/]+)/storage/(.*)$" "/var/$1/storage/$2" break;
    rewrite "^/var/cache/texttoimage/(.*)$" "/var/cache/texttoimage/$1" break;
    rewrite "^/var/([^/]+)/cache/texttoimage/(.*)$" "/var/$1/cache/texttoimage/$2" break;
    rewrite "^/design/([^/]+)/(stylesheets|images|javascript)/(.*)$" "/design/$1/$2/$3" break;
    rewrite "^/share/icons/(.*)$" "/share/icons/$1" break;
    rewrite "^/extension/([^/]+)/design/([^/]+)/(stylesheets|images|javascripts|javascript|flash?)/(.*)$" "/extension/$1/design/$2/$3/$4" break;
    rewrite "^/packages/styles/(.+)/(stylesheets|images|javascript)/([^/]+)/(.*)$" "/packages/styles/$1/$2/$3/$4" break;
    rewrite "^/packages/styles/(.+)/thumbnail/(.*)$" "/packages/styles/$1/thumbnail/$2" break;
    rewrite "^/favicon\.ico$" "/favicon.ico" break;
    rewrite "^/robots\.txt$" "/robots.txt" break;
    rewrite "^/var/cache/debug.html(.*)$" "/var/cache/debug.html$1" break;
    rewrite "^/var/([^/]+)/cache/public/(.*)$" "/var/$1/cache/public/$2" break;
    rewrite "^/var/([^/]+)/cache/debug\.html(.*)$" "/var/$1/cache/debug.html$2" break;

    rewrite "^/content/treemenu/?$" "/index_treemenu.php" last;
    rewrite "^(.*)$" "/index.php?$1" last;
 }
}

http://blog.hbis.fr/2009/10/20/nginx-ezpublish/

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 21:09:26
Script start
Timing: Jan 18 2025 21:09:26
Module start 'layout'
Timing: Jan 18 2025 21:09:26
Module start 'content'
Timing: Jan 18 2025 21:09:27
Module end 'content'
Timing: Jan 18 2025 21:09:27
Script end

Main resources:

Total runtime1.1323 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.0089 587.9141152.6250
Module start 'layout' 0.00890.0039 740.539139.4609
Module start 'content' 0.01281.1179 780.0000407.7266
Module end 'content' 1.13070.0016 1,187.72668.1719
Script end 1.1323  1,195.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3793160.0003
Check MTime0.00150.1312160.0001
Mysql Total
Database connection0.00120.107710.0012
Mysqli_queries1.088196.0956460.0237
Looping result0.00060.0555440.0000
Template Total1.082695.620.5413
Template load0.00290.259320.0015
Template processing1.079795.348420.5398
Template load and register function0.00030.025110.0003
states
state_id_array0.00420.366810.0042
state_identifier_array0.00220.192520.0011
Override
Cache load0.00220.190860.0004
Sytem overhead
Fetch class attribute can translate value0.00080.074210.0008
Fetch class attribute name0.00180.157110.0018
XML
Image XML parsing0.00020.019610.0002
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00080.0668100.0001
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs