Guest User

Untitled

a guest
Jun 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. server {
  2. server_name test.com;
  3. access_log /home/wwwlogs/test.access.log;
  4. error_log /home/wwwlogs/test.error.log;
  5. index index.html index.shtml index.php;
  6. root /home/wwwroot/test_backend/public;
  7.  
  8. location / {
  9. root /home/wwwroot/test_fe/dist;
  10. try_files $uri $uri/ /index.html;
  11. }
  12.  
  13. location /api {
  14. try_files $uri $uri/ /index.php?$query_string;
  15. }
  16.  
  17. location /web {
  18. try_files $uri $uri/ /index.php?$query_string;
  19. }
  20.  
  21. location ~ .*\.(php)?$
  22. {
  23. fastcgi_pass 127.0.0.1:9000;
  24. fastcgi_index index.php;
  25. include fastcgi.conf;
  26. }
  27. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|woff)$
  28. {
  29. root /home/wwwroot/test_fe/dist;
  30. expires 30d;
  31. access_log off;
  32. log_not_found off;
  33. }
  34. location ~ .*\.(js|css)?$
  35. {
  36. root /home/wwwroot/test_fe/dist;
  37. expires 7d;
  38. access_log off;
  39. log_not_found off;
  40. }
  41. }
Add Comment
Please, Sign In to add comment