nginx.conf 962 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. worker_processes 8;
  2. error_log stderr error;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include /usr/local/nginx/conf/mime.types;
  8. default_type application/octet-stream;
  9. access_log off;
  10. sendfile on;
  11. keepalive_timeout 65;
  12. upstream fastcgi_backend {
  13. server 127.0.0.1:9001;
  14. }
  15. server {
  16. listen 8080;
  17. server_name localhost;
  18. root /home/ubuntu/FrameworkBenchmarks/limonade/;
  19. index index.php;
  20. location / {
  21. try_files $uri $uri/ @rewrite;
  22. }
  23. location @rewrite {
  24. rewrite ^/(.*)$ /index.php?u=$1&$args;
  25. }
  26. location ~ \.php$ {
  27. try_files $uri =404;
  28. fastcgi_pass fastcgi_backend;
  29. fastcgi_index index.php;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. include /usr/local/nginx/conf/fastcgi_params;
  32. }
  33. }
  34. }