SHARE
TWEET

Untitled

a guest Jan 15th, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen 80;
  3.  
  4.     root /home/dmarchuk/www/order.studentshare.net/frontend/web;
  5.         index index.php;
  6.  
  7.         server_name order.es-student.loc;
  8.  
  9.     rewrite ^/customers.*$ /crm-widget.php last;
  10.  
  11.  
  12.     location ~ /ctr {
  13.         rewrite /ctr(.*) /$1 break;
  14. #   proxy_pass http://crm-tpl.loc;
  15. #                proxy_pass http://crm-template.prelive04.mcemcw.com;
  16.  proxy_pass http://crm-template.test04.crmhub.org;              
  17.         proxy_read_timeout  600s;
  18.             proxy_connect_timeout  600s;
  19.             proxy_redirect  default;
  20.             proxy_set_header        Upgrade $http_upgrade;
  21.             proxy_set_header        Connection "upgrade";
  22.     }
  23.  
  24.     location / {
  25.             try_files $uri $uri/ /index.php?$args;
  26.         }
  27.    
  28. #location ~* ^\/(css|assets|fonts|image|img|js).+\.(jpg|jpeg|gif|png|ico|css|bmp|js|swf|pdf|svg)$ {
  29.  #        root /home/vkarpenko/PhpstormProjects/order.studentshare.net/frontend/web;
  30.  #             expires max;
  31.  #        add_header Cache-Control public;
  32.  #        access_log off;
  33.   #      }
  34.  
  35.        
  36.         location ~ \.php$ {
  37.             include snippets/fastcgi-php.conf;
  38.             #fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
  39.         fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  40.         }
  41.  
  42.         location ~ /\.ht {
  43.             deny all;
  44.         }
  45.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top