Status message

The page you requested does not exist. A search for statusnet on nginx resulted in this page.

StatusNet on nginx

Category:

StatusNet is an opensource twitter-like clone. You can install StatusNet on your own server and run your private status server for people in your organization.

Install is pretty straight-forward, so I am not showing here any bit to you.
I am attaching here my nginx configuration file and the relevant option in StatusNet config.php to enable fancy URLs.

server {
    listen 109.74.198.23:80;
    server_name bits.scorpionworld.it;
    access_log /srv/www/bits.scorpionworld.it/logs/access.log;
    error_log /srv/www/bits.scorpionworld.it/logs/error.log;

    location ~* (\.jpg|\.png|\.gif|\.jpeg)$ {
      valid_referers none blocked *.scorpionworld.it;
      if ($invalid_referer) {
        return 403;
      }
      root   /srv/www/bits.scorpionworld.it/public_html;
    }

    location / {
        root   /srv/www/bits.scorpionworld.it/public_html;
        index  index.php;
        if (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?p=$1  last;
                break;
        }
    }


    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param  SCRIPT_FILENAME  /srv/www/bits.scorpionworld.it/public_html$fastcgi_script_name;
    }
}

And add to /config.php:

$config['site']['fancy'] = true;

You can reach my test installation here: http://bits.scorpionworld.it/

Add new comment

Via Twitter

  • Seems that using apache2-mpm-itk with KeepAlive on and varnish is evil. Disable KeepAlive and Forbidden errors will disappear. 10 hours 44 min ago
  • Fing - Network scanner for Android https://t.co/ukIdHHqK 2 days 17 hours ago
  • @manuelmazzuola io stavo per provare redis, ma ho un sonno che schianto e vo a letto :P lunedì si prova 3 days 8 hours ago
  • Symfony CMF as a CMS replacement for developers #phpday http://t.co/RsUTvcR3 3 days 14 hours ago
  • @rosamammoli tutti entusiasti, è un peccato fermarsi qui solo per oggi #phpday 3 days 15 hours ago

Blog written by Giovanni Toraldo and licensed under CC-BY-SA

This blog is anonymously available via:
tor and tor2web.

Powered by Drupal
ipv6 test
WORLD IPV6 LAUNCH is 6 June 2012 – The Future is Forever