]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - nginx.conf.sample
Always naming it 'plugin' is not good, it can easily confuse. So better name it
[quix0rs-gnu-social.git] / nginx.conf.sample
1 server {
2   # Ports
3   listen 80;
4   # Uncomment the following line
5   # to enable HTTPS
6   #listen 443 ssl;
7
8   # Server name
9   # Change "example.org" to your domain name
10   server_name example.org;
11
12   # SSL
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;
18
19   # Logs
20   # Uncomment and change the paths to setup
21   # logging
22   #access_log /path/to/access.log;
23   #error_log  /path/to/error.log;
24
25   # Root
26   # Change the path below to where you installed
27   # GNU social
28   root /path/to/gnusocial/root;
29
30   # Index
31   index index.php;
32
33   # PHP
34   location ~ \.php {
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;
40     include fastcgi.conf;
41   }
42
43   # Location
44   location / {
45     try_files $uri $uri/ @gnusocial;
46   }
47
48   # Fancy URLs
49   location @gnusocial {
50     rewrite ^(.*)$ /index.php?p=$1 last;
51   }
52 }
53