Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. location ~ .php$ {
  2. deny all;
  3. }
  4.  
  5. location ^~ /api {
  6. fastcgi_pass 127.0.0.1:9000;
  7. fastcgi_index api.php;
  8.  
  9. fastcgi_param REQUEST_METHOD $request_method;
  10. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  11. include fastcgi_params;
  12. }
  13.  
  14. location ^~ /utility {
  15. fastcgi_pass 127.0.0.1:9000;
  16. fastcgi_index api.php;
  17.  
  18. fastcgi_param REQUEST_METHOD $request_method;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22.  
  23. location ^~ /admin {
  24. root /www/app/admin
  25. fastcgi_pass 127.0.0.1:9000;
  26. fastcgi_index api.php;
  27.  
  28. fastcgi_param REQUEST_METHOD $request_method;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. include fastcgi_params;
  31. }
  32.  
  33. location / {
  34. root /www/app/generated
  35. try_files $uri /index.html;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement