blob: 7293af3c187538c6804e07cfed07d3b877b07b6d (
plain) (
blame)
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
|
server {
listen 80;
listen [::]:80;
listen 443 ssl;
root /var/www/shortlink;
index index.html index.htm index.php index.nginx-debian.html;
server_name .domain.tld; # . na začetku domene, da dela tudi www.
ssl_certificate /path/to/crt;
ssl_certificate_key /path/to/key;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?r=$1 last;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
# preberi se commit opis za dodatne informacije
|