emsd.conf.bak 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. server {
  2. listen 80;
  3. rewrite_log on;
  4. server_name dev.emsd.com;
  5. root /www/EMSD/www;
  6. index index.php index.html index.htm;
  7. #charset koi8-r;
  8. location / {
  9. try_files $uri $uri/ /index.php?$args;
  10. }
  11. # access_log /dev/null;
  12. access_log /var/log/nginx/nginx.emsd.access.log main;
  13. error_log /var/log/nginx/nginx.emsd.error.log warn;
  14. #error_page 404 /404.html;
  15. # redirect server error pages to the static page /50x.html
  16. #
  17. error_page 500 502 503 504 /50x.html;
  18. location = /50x.html {
  19. root /usr/share/nginx/html;
  20. }
  21. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  22. #
  23. #location ~ \.php$ {
  24. # proxy_pass http://127.0.0.1;
  25. #}
  26. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  27. #
  28. location ~ [^/]\.php(/|$) {
  29. fastcgi_pass php80:9000;
  30. fastcgi_param PATH_INFO $request_uri;
  31. include fastcgi-php.conf;
  32. include fastcgi_params;
  33. }
  34. }