1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- server {
- listen 80;
- server_name daemon4jidu2oig6.onion;
- root /var/www/blog/output;
- index index.html index.php;
- # No muestra archivos ocultos
- location ~ /\. { deny all; access_log off; log_not_found off; }
- location ~.*.wp {
- add_header Content-Type text/plain;
- }
- # cgit
- location /cgit {
- gzip off;
- try_files $uri @cgit;
- }
- location @cgit {
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_param REQUEST_URI $request_uri;
- fastcgi_param DOCUMENT_URI $document_uri;
- fastcgi_param SERVER_PROTOCOL $server_protocol;
- fastcgi_param GATEWAY_INTERFACE CGI/1.1;
- fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
- fastcgi_param REMOTE_ADDR $remote_addr;
- fastcgi_param REMOTE_PORT $remote_port;
- fastcgi_param SERVER_ADDR $server_addr;
- fastcgi_param SERVER_PORT $server_port;
- fastcgi_param SERVER_NAME $server_name;
- fastcgi_split_path_info ^(/cgit)(/?.+)$;
- fastcgi_param DOCUMENT_ROOT /var/www/blog/output/cgit;
- fastcgi_param SCRIPT_NAME /cgit.cgi$fastcgi_path_info;
- }
- # isso
- location /comments {
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Script-Name /comments;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_pass http://localhost:8080;
- }
- # twitter2rss
- location ~ \.php$ {
- try_files $uri $uri/ /index.php?$args;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location /twitter2rss/feeds {
- autoindex on;
- }
- }
|