summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Šijanec <sijanecantonluka@gmail.com>2019-03-01 18:06:39 +0100
committerGitHub <noreply@github.com>2019-03-01 18:06:39 +0100
commitfce9209f5ada5793f67f265361bcdceb06c29d69 (patch)
tree061bf1d4b0770cde3e1d0e56b8ba4106af393b14
parentdodal URL encoding pojasnilo k napaki dolgega URL-ja (diff)
downloadbalkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar.gz
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar.bz2
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar.lz
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar.xz
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.tar.zst
balkan-shortlink-fce9209f5ada5793f67f265361bcdceb06c29d69.zip
-rw-r--r--nginx-server.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/nginx-server.conf b/nginx-server.conf
new file mode 100644
index 0000000..d1a3cb4
--- /dev/null
+++ b/nginx-server.conf
@@ -0,0 +1,28 @@
+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;
+ }
+}
+
+# NGINX DODATNE OPOMBE:
+# V PHP SOCK bodo