5 # FIXME: change domain name here (and also make sure you do the same in the next 'server' section)
6 server_name social.example.org;
8 # redirect all traffic to HTTPS
9 rewrite ^ https://$server_name$request_uri? permanent;
13 # Use HTTPS. Seriously. Set it up with a cert (any cert) before you run the install.
17 # Change "social.example.org" to your site's domain name
18 server_name social.example.org;
21 # Uncomment and change the paths to setup
22 # your SSL key/cert. See https://cipherli.st/
23 # for more information
24 ssl_certificate ssl/certs/social.example.org.crt;
25 ssl_certificate_key ssl/private/social.example.org.key;
28 # Uncomment and change the paths to setup
30 #access_log /path/to/access.log;
31 #error_log /path/to/error.log;
34 # Change the path below to where you installed
36 root /path/to/gnusocial/root;
43 include snippets/fastcgi-php.conf;
45 # This should be the same value as in your (optional) /etc/php5/fpm/pool.d/$server.conf
46 fastcgi_pass unix:/var/run/php5-fpm.sock;
48 # Remove the "fastcgi_pass" line above and uncomment
49 # the one below to use TCP sockets instead of Unix sockets
50 #fastcgi_pass 127.0.0.1:9000;
55 try_files $uri $uri/ @gnusocial;
60 rewrite ^(.*)$ /index.php?p=$1 last;
63 # Restrict access that is unnecessary anyway
64 location ~ /\.(ht|git) {