Skip to content

Instantly share code, notes, and snippets.

@zeroasterisk
Created August 1, 2011 20:47
Show Gist options
  • Save zeroasterisk/1118959 to your computer and use it in GitHub Desktop.
Save zeroasterisk/1118959 to your computer and use it in GitHub Desktop.
nginx.conf - example cakeapp
# Example CakePHP App config
server {
listen 80;
server_name domain.com www.domain.com asset.domain.com;
access_log /var/log/nginx/domain.access.log main;
error_log /var/log/nginx/domain.errors.log info;
root /var/www/prod/domain/app/webroot;
index index.php index.html index.htm;
include standard_location_config_cakephp;
rewrite ^/News/.* /articles/ last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment