nginx.conf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  9. # '$status $body_bytes_sent "$http_referer" '
  10. # '"$http_user_agent" "$http_x_forwarded_for"';
  11. #access_log logs/access.log main;
  12. sendfile on;
  13. #tcp_nopush on;
  14. #keepalive_timeout 0;
  15. keepalive_timeout 65;
  16. #gzip on;
  17. server {
  18. listen 80;
  19. server_name localhost;
  20. #charset utf-8;
  21. #access_log logs/host.access.log main;
  22. location / {
  23. index index.html index.htm;
  24. proxy_pass https://git.i2erp.cn/i2-tech/development-manual/raw/master;
  25. }
  26. #error_page 404 /404.html;
  27. # redirect server error pages to the static page /50x.html
  28. #
  29. error_page 500 502 503 504 /50x.html;
  30. location = /50x.html {
  31. root html;
  32. }
  33. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  34. #
  35. #location ~ \.php$ {
  36. # proxy_pass http://127.0.0.1;
  37. #}
  38. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  39. #
  40. #location ~ \.php$ {
  41. # root html;
  42. # fastcgi_pass 127.0.0.1:9000;
  43. # fastcgi_index index.php;
  44. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  45. # include fastcgi_params;
  46. #}
  47. # deny access to .htaccess files, if Apache's document root
  48. # concurs with nginx's one
  49. #
  50. #location ~ /\.ht {
  51. # deny all;
  52. #}
  53. }
  54. # another virtual host using mix of IP-, name-, and port-based configuration
  55. #
  56. #server {
  57. # listen 8000;
  58. # listen somename:8080;
  59. # server_name somename alias another.alias;
  60. # location / {
  61. # root html;
  62. # index index.html index.htm;
  63. # }
  64. #}
  65. # HTTPS server
  66. #
  67. #server {
  68. # listen 443 ssl;
  69. # server_name localhost;
  70. # ssl_certificate cert.pem;
  71. # ssl_certificate_key cert.key;
  72. # ssl_session_cache shared:SSL:1m;
  73. # ssl_session_timeout 5m;
  74. # ssl_ciphers HIGH:!aNULL:!MD5;
  75. # ssl_prefer_server_ciphers on;
  76. # location / {
  77. # root html;
  78. # index index.html index.htm;
  79. # }
  80. #}
  81. }