Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. tail -f /var/log/nginx/error.log
  2. 2013/05/04 23:43:35 [error] 733#0: *3662 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET /robots.txt HTTP/1.1", host: "kowol.mysite.net"
  3. HTTP/1.1", host: "www.joesfitness.net"
  4. 2013/05/05 00:49:14 [error] 733#0: *3783 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET / http://www.qq.com/ HTTP/1.1", host: "www.qq.com"
  5. 2013/05/05 03:12:33 [error] 733#0: *4232 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", host: "joesfitness.net"
  6.  
  7. server {
  8. listen 8080; ## listen for ipv4; this line is default and implied
  9. listen [::]:8080 default ipv6only=on; ## listen for ipv6
  10.  
  11. root /usr/share/nginx/www;
  12. index index.php index.html index.htm;
  13.  
  14. # Make site accessible from http://localhost/
  15. server_name _;
  16.  
  17. location / {
  18. # First attempt to serve request as file, then
  19. # as directory, then fall back to index.html
  20. try_files $uri $uri/ /index.html;
  21. # Uncomment to enable naxsi on this location
  22. # include /etc/nginx/naxsi.rules
  23. }
  24.  
  25. location /doc/ {
  26. alias /usr/share/doc/;
  27. autoindex on;
  28. allow 127.0.0.1;
  29. deny all;
  30. }
  31.  
  32. # Only for nginx-naxsi : process denied requests
  33. #location /RequestDenied {
  34. # For example, return an error code
  35. #return 418;
  36. #}
  37.  
  38. #error_page 404 /404.html;
  39.  
  40. # redirect server error pages to the static page /50x.html
  41. #
  42. #error_page 500 502 503 504 /50x.html;
  43. #location = /50x.html {
  44. # root /usr/share/nginx/www;
  45. #}
  46.  
  47. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  48. #
  49. location ~ .php$ {
  50. fastcgi_split_path_info ^(.+.php)(/.+)$;
  51. # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  52.  
  53. # With php5-cgi alone:
  54. fastcgi_pass 127.0.0.1:9000;
  55. #With php5-fpm:
  56. #fastcgi_pass unix:/var/run/php5-fpm.sock;
  57. fastcgi_index index.php;
  58. include fastcgi_params;
  59. }
  60.  
  61. # deny access to .htaccess files, if Apache's document root
  62. # concurs with nginx's one
  63. #
  64. #location ~ /.ht {
  65. # deny all;
  66. #}
  67. }
  68.  
  69. try_files $uri $uri/ /index.html;
  70.  
  71. try_files $uri $uri/ =404;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement