Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.19 KB | None | 0 0
  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.     rewrite ^/customers.*$ /crm-widget.php last;
  9.  
  10.  
  11.     location ~ /ctr {
  12.         rewrite /ctr(.*) /builder$1 break;
  13.         proxy_pass http://middleware.test04.crmhub.org;
  14. #               proxy_pass http://crm-template.prelive04.mcemcw.com;
  15.         proxy_read_timeout  600s;
  16.             proxy_connect_timeout  600s;
  17.             proxy_redirect  default;
  18.             proxy_set_header        Upgrade $http_upgrade;
  19.             proxy_set_header        Connection "upgrade";
  20.     }
  21.  
  22.     location / {
  23.             try_files $uri $uri/ /index.php?$args;
  24.         }
  25.    
  26. #location ~* ^\/(css|assets|fonts|image|img|js).+\.(jpg|jpeg|gif|png|ico|css|bmp|js|swf|pdf|svg)$ {
  27.  #        root /home/vkarpenko/PhpstormProjects/order.studentshare.net/frontend/web;
  28.  #             expires max;
  29.  #        add_header Cache-Control public;
  30.  #        access_log off;
  31.   #      }
  32.  
  33.        
  34.         location ~ \.php$ {
  35.             include snippets/fastcgi-php.conf;
  36.         fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  37.         }
  38.  
  39.         location ~ /\.ht {
  40.             deny all;
  41.         }
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement