Advertisement
METAJIJI

Untitled

Jan 7th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name _;
  4.  
  5. access_log /var/log/nginx/app.access.log;
  6. error_log /var/log/nginx/app.error.log;
  7.  
  8. # Options
  9. charset utf-8;
  10. client_max_body_size 200M;
  11.  
  12. # Locations
  13. location /api/v1/backend/ {
  14. alias /home/vagrant/www/backend/web/;
  15. try_files $uri /index.php?$args;
  16. location ~ ^/api/v1/backend/(.*) {
  17. include fastcgi_params;
  18. fastcgi_pass 127.0.0.1:9000;
  19. fastcgi_index index.php;
  20. fastcgi_param SCRIPT_NAME /index.php;
  21. fastcgi_param SCRIPT_FILENAME ${document_root}index.php;
  22. }
  23. }
  24.  
  25. location /api/v1/frontend/ {
  26. alias /home/vagrant/www/frontend/web/;
  27. try_files $uri /index.php?$args;
  28.  
  29. location ~ ^/api/v1/frontend/(.*) {
  30. include fastcgi_params;
  31. fastcgi_pass 127.0.0.1:9000;
  32. fastcgi_index index.php;
  33.  
  34. fastcgi_param SCRIPT_NAME /index.php;
  35. fastcgi_param SCRIPT_FILENAME ${document_root}index.php;
  36. }
  37. }
  38.  
  39. location ~ \.(ht|svn|git) {
  40. deny all;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement