root /home/u1/domains/example.com; location / { try_files $uri $uri/ @fuel; expires 30d; } location @fuel { rewrite ^ /index.php?/$request_uri; } location ~* ^/(modules|application|system) { return 403; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_intercept_errors on; fastcgi_pass unix:/var/run/php5-example.com.sock; } location ~ /\.svn { deny all; } location ~ /\.git { deny all; } location ~ /\.hg { deny all; } location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 7d; }