Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. index index.php index.html index.htm;
  2.  
  3. location ~ .php$ {
  4. try_files $uri =404;
  5. fastcgi_intercept_errors on;
  6. fastcgi_index index.php;
  7. include fastcgi_params;
  8. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  9. fastcgi_pass php-fpm;
  10. }
  11.  
  12. server {
  13. listen 80;
  14. server_name app.com;
  15. root /var/www/app/;
  16. include /etc/nginx/default.d/php.conf;
  17.  
  18. location / {
  19. root /var/www/app/frontend/dist;
  20. try_files $uri $uri/ /index.html =404;
  21. rewrite ^/deploy /var/www/app/deploy/deploy.php;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement