Skip to content

Instantly share code, notes, and snippets.

@donvitonet
Last active December 14, 2015 16:59
Show Gist options
  • Save donvitonet/5118753 to your computer and use it in GitHub Desktop.
Save donvitonet/5118753 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name webcal.engecal.teste www.webcal.engecal.teste;
access_log off;
error_log /var/log/nginx/webcal.log;
root /var/opt/app/current;
index index.php;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass 127.0.0.1:9000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment