Guest User

Untitled

a guest
Feb 9th, 2012
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. server_name site1.xxx.ca test.xxx.com;
  3. access_log /var/www/site1.xxx.ca/logs/access.log;
  4. error_log /var/www/site1.xxx.ca/logs/error.log;
  5. root /var/www/site1.xxx.ca/public_html;
  6.  
  7. location / {
  8. index index.html index.htm index.php;
  9. }
  10.  
  11. location ~ \.php$ {
  12. set $memcached_key $uri;
  13. memcached_pass xxx.xxx.xxx.xxx:11211;
  14. default_type text/html;
  15. #error_page 404 @cache_miss;
  16. }
  17.  
  18. #location ~ \.php$ {
  19. location @cache_miss {
  20. include /etc/nginx/fastcgi_params;
  21. fastcgi_pass 127.0.0.1:9000;
  22. fastcgi_index index.php;
  23. fastcgi_param SCRIPT_FILENAME /var/www/site1.xxx.ca/public_html$fastcgi_script_name;
  24. }
  25. }
RAW Paste Data