FAQ

Page Discussion History

ExpressionEngine

Revision as of 20:59, 28 June 2011 by Rafaelmagu (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ExpressionEngine

ExpressionEngine is a flexible, feature-rich content management system that empowers thousands of individuals, organizations, and companies around the world to easily manage their website.


This configuration isn't heavily tested, but it seems to work.

server {
  listen 80;
  server_name www.mydomain.com;
  root /var/www/EECore1.6.7;
 
  access_log /var/log/nginx/www.mydomain.com-access.log;
  error_log  /var/log/nginx/www.mydomain.com-error.log info;
 
  location / {
    index index.php;
    error_page 404 = @ee;
  }
 
  location @ee {
    rewrite ^(.*) /index.php?$1 last;
  }
 
  location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass  127.0.0.1:8888;
    fastcgi_index index.php5;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}

Better Version

NOTE: The configuration above generates a lot of 404 errors on the logs. The one below is cleaner, and uses the recommended try_files method:

server {
  listen 80;
  server_name www.mydomain.com;
  root /var/www/EECore1.6.7;
 
  access_log /var/log/nginx/www.mydomain.com-access.log;
  error_log  /var/log/nginx/www.mydomain.com-error.log info;
 
  location / {
    index index.php;
    try_files $uri $uri/ @ee;
  }
 
  location @ee {
    rewrite ^(.*) /index.php?$1 last;
  }
 
  location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass  127.0.0.1:8888;
    fastcgi_index index.php5;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}