4 # Uncomment the following line
9 # Change "example.org" to your domain name
10 server_name example.org;
13 # Uncomment and change the paths to setup
14 # your SSL key/cert. See https://cipherli.st/
15 # for more information
16 #ssl_certificate /path/to/ssl.cert;
17 #ssl_certificate_key /path/to/ssl.key;
20 # Uncomment and change the paths to setup
22 #access_log /path/to/access.log;
23 #error_log /path/to/error.log;
26 # Change the path below to where you installed
28 root /path/to/gnusocial/root;
35 fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
36 # Remove the "fastcgi_pass" line above and uncomment
37 # the one below to use TCP sockets instead of Unix sockets
38 #fastcgi_pass 127.0.0.1:9000;
39 fastcgi_index index.php;
45 try_files $uri $uri/ @gnusocial;
50 rewrite ^(.*)$ /index.php?p=$1 last;