nginx.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. #user nobody;
  2. worker_processes auto;
  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 16384;
  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. server_tokens off;
  20. sendfile on;
  21. #tcp_nopush on;
  22. #keepalive_timeout 0;
  23. keepalive_timeout 65;
  24. #gzip on;
  25. server {
  26. listen 8080;
  27. server_name localhost;
  28. #charset koi8-r;
  29. #access_log logs/host.access.log main;
  30. #location / {
  31. # root html;
  32. # index index.html index.htm;
  33. #}
  34. #error_page 404 /404.html;
  35. # redirect server error pages to the static page /50x.html
  36. #
  37. #error_page 500 502 503 504 /50x.html;
  38. #location = /50x.html {
  39. # root html;
  40. #}
  41. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  42. #
  43. #location ~ \.php$ {
  44. # proxy_pass http://127.0.0.1;
  45. #}
  46. root /home/tfb/FrameworkBenchmarks/php-phpixie/web/;
  47. index index.php;
  48. location / {
  49. try_files $uri $uri/ /index.php?$uri&$args;
  50. }
  51. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  52. #
  53. location ~ \.php$ {
  54. try_files $uri =404;
  55. fastcgi_pass 127.0.0.1:9001;
  56. fastcgi_index index.php;
  57. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  58. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  59. include /usr/local/nginx/conf/fastcgi_params;
  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. # another virtual host using mix of IP-, name-, and port-based configuration
  69. #
  70. #server {
  71. # listen 8000;
  72. # listen somename:8080;
  73. # server_name somename alias another.alias;
  74. # location / {
  75. # root html;
  76. # index index.html index.htm;
  77. # }
  78. #}
  79. # HTTPS server
  80. #
  81. #server {
  82. # listen 443;
  83. # server_name localhost;
  84. # ssl on;
  85. # ssl_certificate cert.pem;
  86. # ssl_certificate_key cert.key;
  87. # ssl_session_timeout 5m;
  88. # ssl_protocols SSLv2 SSLv3 TLSv1;
  89. # ssl_ciphers HIGH:!aNULL:!MD5;
  90. # ssl_prefer_server_ciphers on;
  91. # location / {
  92. # root html;
  93. # index index.html index.htm;
  94. # }
  95. #}
  96. }