Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name mes.renbo.co;
- root /var/www/newmes;
- index index.html;
- #location /static/.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
- # root /var/www/dist/static;
- #}
- #location /vue-admin/static/.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
- # root /var/www/dist/static;
- #}
- location /api {
- rewrite (.*)/api(.*) http://$server_name$2;
- }
- location / {
- if (!-e $request_filename) {
- proxy_pass http://api;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement