nginx.htaccess 648 B

123456789101112131415161718192021222324
  1. location / {
  2. try_files $uri $uri/ /index.php?$query_string;
  3. }
  4. location /resources/{
  5. if ($arg_responseContentType = "application/octet-stream") {
  6. add_header Content-Disposition "attachment";
  7. }
  8. if ($arg_responseContentType = "application%2Foctet-stream") {
  9. add_header Content-Disposition "attachment";
  10. }
  11. alias "D:/index/mp_website-dev/resources/upload/";
  12. }
  13. location /admin {
  14. alias "D:/index/mp_website_view/dist";
  15. index index.html;
  16. }
  17. location /static/{
  18. alias "D:/index/mp_website_view/dist/static/";
  19. }
  20. location /assets/{
  21. alias "D:/index/mp_website_view/assets/";
  22. }