Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.85 KB | None | 0 0
  1.  
  2. server {
  3.     server_name     webreport.tobaccosuper.com;
  4.     listen 0.0.0.0:80 ;
  5.  
  6.     access_log      /var/log/nginx/webreport.tobaccosuper.com/access.log;
  7.     error_log       /var/log/nginx/webreport.tobaccosuper.com/error.log;
  8.  
  9.     root            /home/tss/htdocs/webreport.tobaccosuper.com/public;
  10.  
  11.     index index.php index.html index.htm;
  12.     client_max_body_size 200m;
  13.  
  14.     location / {
  15.         try_files $uri /index.php$is_args$args;
  16.     }
  17.  
  18.     location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
  19.         try_files $uri =404;
  20.     }
  21.  
  22.     location ~ \.php$ {
  23.        fastcgi_pass unix:/var/run/php5-fpm-tss.sock;
  24.        include fastcgi_params;
  25.        fastcgi_param APP_ENV prod;
  26.        fastcgi_param YII_DEBUG true;
  27.        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  28.        try_files $uri =404;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement