Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name webreport.tobaccosuper.com;
- listen 0.0.0.0:80 ;
- access_log /var/log/nginx/webreport.tobaccosuper.com/access.log;
- error_log /var/log/nginx/webreport.tobaccosuper.com/error.log;
- root /home/tss/htdocs/webreport.tobaccosuper.com/public;
- index index.php index.html index.htm;
- client_max_body_size 200m;
- location / {
- try_files $uri /index.php$is_args$args;
- }
- location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
- try_files $uri =404;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php5-fpm-tss.sock;
- include fastcgi_params;
- fastcgi_param APP_ENV prod;
- fastcgi_param YII_DEBUG true;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- try_files $uri =404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement