Skip to content

Instantly share code, notes, and snippets.

@RomanGorbatko
Created December 10, 2014 18:31
Show Gist options
  • Save RomanGorbatko/f0aea728456d573f2ae7 to your computer and use it in GitHub Desktop.
Save RomanGorbatko/f0aea728456d573f2ae7 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name dev.uasector.dev www.dev.uasector.com;
root /var/www/uasector.com/dev/web/;
location / {
# try to serve file directly, fallback to app.php
# include /usr/local/etc/nginx/conf.d/php-fpm;
try_files $uri /app_dev.php$is_args$args;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
# fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment