nginx_virtualhost 504 B

123456789101112131415161718192021222324
  1. server {
  2. listen 80;
  3. server_name $name;
  4. error_log /var/log/nginx/error.log;
  5. access_log /var/log/nginx/access.log;
  6. root /var/www/twitter2rss;
  7. index index.php;
  8. location ~ \.php$ {
  9. try_files $uri $uri/ /index.php?$args;
  10. fastcgi_pass unix:/var/run/php5-fpm.sock;
  11. fastcgi_index index.php;
  12. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. include fastcgi_params;
  14. }
  15. location /feeds {
  16. autoindex on;
  17. }
  18. }