Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.71 KB | None | 0 0
  1.     location / {
  2.       index  /front/dist/index.html;
  3.       try_files $uri $uri/ /front/dist/$uri;
  4.     }
  5.    
  6.     location /front/dist/ {
  7.       try_files $uri $uri/ /index.html;
  8.     }
  9.    
  10.     location /back {
  11.         try_files $uri $uri/ /index.php;
  12.  
  13.         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  14.             expires     max;
  15.         }
  16.  
  17.         location ~ [^/]\.php(/|$) {
  18.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19.             if (!-f $document_root$fastcgi_script_name) {
  20.                 return  404;
  21.             }
  22.  
  23.             fastcgi_pass    127.0.0.1:9002;
  24.             fastcgi_index   index.php;
  25.             include         /etc/nginx/fastcgi_params;
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement