nikola-isso.virtualhost 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. server {
  2. listen 80;
  3. server_name daemon4jidu2oig6.onion;
  4. root /var/www/blog/output;
  5. index index.html index.php;
  6. # No muestra archivos ocultos
  7. location ~ /\. { deny all; access_log off; log_not_found off; }
  8. location ~.*.wp {
  9. add_header Content-Type text/plain;
  10. }
  11. # cgit
  12. location /cgit {
  13. gzip off;
  14. try_files $uri @cgit;
  15. }
  16. location @cgit {
  17. fastcgi_pass unix:/var/run/fcgiwrap.socket;
  18. fastcgi_param QUERY_STRING $query_string;
  19. fastcgi_param REQUEST_METHOD $request_method;
  20. fastcgi_param CONTENT_TYPE $content_type;
  21. fastcgi_param CONTENT_LENGTH $content_length;
  22. fastcgi_param REQUEST_URI $request_uri;
  23. fastcgi_param DOCUMENT_URI $document_uri;
  24. fastcgi_param SERVER_PROTOCOL $server_protocol;
  25. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  26. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  27. fastcgi_param REMOTE_ADDR $remote_addr;
  28. fastcgi_param REMOTE_PORT $remote_port;
  29. fastcgi_param SERVER_ADDR $server_addr;
  30. fastcgi_param SERVER_PORT $server_port;
  31. fastcgi_param SERVER_NAME $server_name;
  32. fastcgi_split_path_info ^(/cgit)(/?.+)$;
  33. fastcgi_param DOCUMENT_ROOT /var/www/blog/output/cgit;
  34. fastcgi_param SCRIPT_NAME /cgit.cgi$fastcgi_path_info;
  35. }
  36. # isso
  37. location /comments {
  38. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39. proxy_set_header X-Script-Name /comments;
  40. proxy_set_header Host $host;
  41. proxy_set_header X-Forwarded-Proto $scheme;
  42. proxy_pass http://localhost:8080;
  43. }
  44. # twitter2rss
  45. location ~ \.php$ {
  46. try_files $uri $uri/ /index.php?$args;
  47. fastcgi_pass unix:/var/run/php5-fpm.sock;
  48. fastcgi_index index.php;
  49. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  50. include fastcgi_params;
  51. }
  52. location / {
  53. try_files $uri $uri/ /index.php?$args;
  54. }
  55. location /twitter2rss/feeds {
  56. autoindex on;
  57. }
  58. }