Guest User

Untitled

a guest
Oct 21st, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name api.myapp.loc;
  4. access_log /home/nathan/project/api/logs/access.log;
  5. error_log /home/nathan/project/api/logs/error.log debug;
  6.  
  7. index index.php index.html index.htm
  8. root /home/nathan/project/api/public;
  9. charset utf-8;
  10.  
  11. location / {
  12. try_files $uri $uri/ /index.php;
  13. }
  14.  
  15. location ~ .php$ {
  16. try_files $uri =404;
  17.  
  18. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  19. fastcgi_index /index.php;
  20.  
  21. include fastcgi_params;
  22. fastcgi_split_path_info ^(.+.php)(/.+)$;
  23. fastcgi_param PATH_INFO $fastcgi_path_info;
  24. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26.  
  27. # super long timeout for long queries...
  28. proxy_read_timeout 600s;
  29. fastcgi_read_timeout 600s;
  30. }
  31.  
  32. location ~ /.ht {
  33. deny all;
  34. }
  35. }
  36.  
  37. 2017/10/21 09:43:21 [debug] 2005#2005: *1 http script var: "/crossdomain.xml"
  38. 2017/10/21 09:43:21 [debug] 2005#2005: *1 trying to use file: "/crossdomain.xml" "/usr/share/nginx/html/crossdomain.xml"
  39. 2017/10/21 09:43:21 [debug] 2005#2005: *1 http script var: "/crossdomain.xml"
  40. 2017/10/21 09:43:21 [debug] 2005#2005: *1 trying to use dir: "/crossdomain.xml" "/usr/share/nginx/html/crossdomain.xml"
  41. 2017/10/21 09:43:21 [debug] 2005#2005: *1 trying to use file: "/index.php" "/usr/share/nginx/html/index.php"
  42. 2017/10/21 09:43:21 [debug] 2005#2005: *1 internal redirect: "/index.php?"
Add Comment
Please, Sign In to add comment