Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location ~ ^/(api|image)/(.*)$ {
- root /home/username/www/;
- try_files $uri /index.php;
- }
- location / {
- root /home/username/frontend/dist/;
- try_files $uri /200.html;
- }
- location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp|ttf|woff|woff2|svg)$ {
- root /home/username/frontend/dist/;
- access_log off;
- log_not_found off;
- expires 10d;
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement