Skip to content

Instantly share code, notes, and snippets.

@ephrin
Created December 2, 2014 10:01
Show Gist options
  • Save ephrin/00348b67446f0e5d7878 to your computer and use it in GitHub Desktop.
Save ephrin/00348b67446f0e5d7878 to your computer and use it in GitHub Desktop.
crm.conf
server {
listen *:80;
##comment/uncomment##
# server_name crm.hotels24.ua;
# server_name crm.hotels24.stage;
server_name crm.hotels24.dev;
charset utf-8;
root /var/www/admin_hotels24/public;
##comment/uncomment##
# set $index_file 'index_prod.php';
# set $index_file 'index_stage.php';
set $index_file 'index_dev.php';
fastcgi_cache_valid 200 0m;
fastcgi_cache_valid 404 1m;
location ~ /(resources|wsdl|javascript|img|css|js|assets|images|favicon|robots) {
gzip_static on;
gzip_types text/javascript text/css;
gzip_proxied expired no-cache no-store private auth;
error_log /var/log/nginx/hotels24_crm_static_error.log;
expires 10h;
}
location / {
error_log /var/log/nginx/hotels24_crm_errors.log;
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types application/json text/plain application/xml;
#fastcgi_pass 127.0.0.1:9007;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$index_file;
fastcgi_param REQUEST_URI $uri?$args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment