Created
December 10, 2014 18:31
-
-
Save RomanGorbatko/f0aea728456d573f2ae7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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