123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- server {
- listen 80;
- listen [::]:80;
-
- server_name social.example.org;
-
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
-
- listen 443 ssl;
-
-
- server_name social.example.org;
-
-
-
-
- ssl_certificate ssl/certs/social.example.org.crt;
- ssl_certificate_key ssl/private/social.example.org.key;
-
-
-
-
-
-
-
-
- root /path/to/gnusocial/root;
-
- index index.php;
-
- location ~ \.php {
- include snippets/fastcgi-php.conf;
-
- fastcgi_pass unix:/var/run/php5-fpm.sock;
-
-
-
- }
-
- location / {
- try_files $uri $uri/ @gnusocial;
- }
-
- location @gnusocial {
- rewrite ^(.*)$ /index.php?p=$1 last;
- }
-
- location ~ /\.(ht|git) {
- deny all;
- }
- }
|