nginx.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #user nobody;
  2. worker_processes 8;
  3. #error_log logs/error.log;
  4. #error_log logs/error.log notice;
  5. #error_log logs/error.log info;
  6. error_log stderr error;
  7. #pid logs/nginx.pid;
  8. events {
  9. worker_connections 1024;
  10. }
  11. http {
  12. include /usr/local/nginx/conf/mime.types;
  13. default_type application/octet-stream;
  14. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  15. # '$status $body_bytes_sent "$http_referer" '
  16. # '"$http_user_agent" "$http_x_forwarded_for"';
  17. #access_log logs/access.log main;
  18. access_log off;
  19. sendfile on;
  20. #tcp_nopush on;
  21. #keepalive_timeout 0;
  22. keepalive_timeout 65;
  23. #gzip on;
  24. server {
  25. listen 8080;
  26. server_name localhost;
  27. #charset koi8-r;
  28. #access_log logs/host.access.log main;
  29. #location / {
  30. # root html;
  31. # index index.html index.htm;
  32. #}
  33. #error_page 404 /404.html;
  34. # redirect server error pages to the static page /50x.html
  35. #
  36. #error_page 500 502 503 504 /50x.html;
  37. #location = /50x.html {
  38. # root html;
  39. #}
  40. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  41. #
  42. #location ~ \.php$ {
  43. # proxy_pass http://127.0.0.1;
  44. #}
  45. root /home/tfb/FrameworkBenchmarks/php-phpixie/web/;
  46. index index.php;
  47. location / {
  48. try_files $uri $uri/ /index.php?$uri&$args;
  49. }
  50. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  51. #
  52. location ~ \.php$ {
  53. try_files $uri =404;
  54. fastcgi_pass 127.0.0.1:9001;
  55. fastcgi_index index.php;
  56. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  57. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  58. include /usr/local/nginx/conf/fastcgi_params;
  59. }
  60. # deny access to .htaccess files, if Apache's document root
  61. # concurs with nginx's one
  62. #
  63. #location ~ /\.ht {
  64. # deny all;
  65. #}
  66. }
  67. # another virtual host using mix of IP-, name-, and port-based configuration
  68. #
  69. #server {
  70. # listen 8000;
  71. # listen somename:8080;
  72. # server_name somename alias another.alias;
  73. # location / {
  74. # root html;
  75. # index index.html index.htm;
  76. # }
  77. #}
  78. # HTTPS server
  79. #
  80. #server {
  81. # listen 443;
  82. # server_name localhost;
  83. # ssl on;
  84. # ssl_certificate cert.pem;
  85. # ssl_certificate_key cert.key;
  86. # ssl_session_timeout 5m;
  87. # ssl_protocols SSLv2 SSLv3 TLSv1;
  88. # ssl_ciphers HIGH:!aNULL:!MD5;
  89. # ssl_prefer_server_ciphers on;
  90. # location / {
  91. # root html;
  92. # index index.html index.htm;
  93. # }
  94. #}
  95. }