summaryrefslogtreecommitdiff
path: root/nginx/sites-available/samsargika.copyninja.info
blob: 9a54d9c9ee9dad9e38e9ed6d587bb582e63f530c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
server {
     listen 443;
     server_name samsargika.copyninja.info;
     root /srv/samsargika.copyninja.info;
     index index.php;

     ssl on;
     ssl_certificate /etc/nginx/ssl/samsargika.copyninja.info.pem
     ssl_certificate_key /etc/nginx/ssl/privkey.pem

     location = /favicon.ico {
        log_not_found off;
        access_log off;
     }

     location = /robots.txt {
         allow all;
         log_not_found off;
         access_log off;
     }

     location ~ \.php$ {
        uwsgi_pass unix:///run/uwsgi/app/friendica/socket;
	include uwsgi_params;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
         expires max;
         log_not_found off;
    }

    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php?q=$1 last;
    }

    location / {
        try_files $uri $uri/ /index.php;
    }
}