nebukad

Codeigniter.conf

Apr 15th, 2016
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.50 KB | None | 0 0
  1. server {
  2.         #listen       80;
  3.         server_name  dev.passion.com;
  4.  
  5.         root /Users/ororimac/Site/passion;
  6.  
  7.         autoindex on;
  8.         index index.php;
  9.  
  10.         # set expiration of assets to MAX for caching
  11.         location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
  12.                 expires max;
  13.                 log_not_found off;
  14.         }
  15.  
  16.         error_log       /usr/local/etc/nginx/logs/passion.error.log;
  17.         access_log      /usr/local/etc/nginx/logs/passion.access.log;
  18.  
  19.         location / {
  20.                 try_files $uri $uri/ /index.php;
  21.  
  22.             location = /index.php {
  23.  
  24.                 fastcgi_pass   127.0.0.1:9000;
  25.                 fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26.                 include        fastcgi_params;
  27.             }
  28.         }
  29.  
  30.         location ~ \.php$ {
  31.             return 444;
  32.         }
  33.  
  34.         #location ~ \.php$ {
  35.         #    #root  /Users/ororimac/Site;
  36.         #    #try_files  $uri  $uri/  /index.php?$args ;
  37.         #    index  index.html index.htm index.php;
  38.         #    fastcgi_param PATH_INFO $fastcgi_path_info;
  39.         #    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  40.         #    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  41.  
  42.         #    fastcgi_pass 127.0.0.1:9000;
  43.         #    fastcgi_index index.php;
  44.         #    fastcgi_split_path_info ^(.+\.php)(/.+)$;
  45.         #    fastcgi_intercept_errors on;
  46.         #    include fastcgi_params;
  47.         #}
  48. }
Add Comment
Please, Sign In to add comment