Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.63 KB | None | 0 0
  1.     server {
  2.         listen      80;
  3.         server_name mes.renbo.co;
  4.         root /var/www/newmes;
  5.         index        index.html;
  6.  
  7.         #location /static/.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$  {
  8.         #    root    /var/www/dist/static;
  9.         #}
  10.  
  11.         #location /vue-admin/static/.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$  {
  12.         #    root    /var/www/dist/static;
  13.         #}
  14.  
  15.  
  16.         location /api {
  17.             rewrite (.*)/api(.*) http://$server_name$2;
  18.         }
  19.        
  20.         location / {
  21.             if (!-e $request_filename) {
  22.                 proxy_pass http://api;
  23.             }
  24.         }
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement