nebukad

frontend.orori.com

Apr 15th, 2016
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.18 KB | None | 0 0
  1. server {
  2.         #listen 80;
  3.         server_name front.ororilocal.com;
  4.         client_max_body_size    20M;
  5.  
  6.         root    /Users/ororimac/Site/frontend/web;
  7.  
  8.         error_log       /usr/local/etc/nginx/logs/frontend.error.log;
  9.         access_log      /usr/local/etc/nginx/logs/frontend.access.log;
  10.  
  11.         #ssl on;
  12.         #ssl_certificate        /etc/nginx/ssl/nginx.crt;
  13.         #ssl_certificate_key    /etc/nginx/ssl/nginx.key;
  14.  
  15.         location / {
  16.                 try_files       $uri    @rewriteapp;
  17.         }
  18.  
  19.         location @rewriteapp {
  20.                 rewrite ^(.*)/(.*)/img/(.*)$  /app_dev.php/$1/$2/img/$3 last;
  21.                 rewrite ^(.*)$  /app_dev.php/$1 last;
  22.         }
  23.  
  24.         # Pass the PHP scripts to FastCGI server
  25.         location ~ ^/(app|app_dev|config)\.php(/|$) {
  26.                 fastcgi_split_path_info ^(.+\.php)(/.*)$;
  27.                 #fastcgi_pass unix:/var/run/php5-fpm.sock;
  28.                 fastcgi_pass 127.0.0.1:9000;
  29.                 fastcgi_index index.php;
  30.                 include fastcgi_params;
  31.                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32.                 fastcgi_param HTTPS off;
  33.         }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment