From 1d35a6700dd459b4df9e39f4e84ec6feab6181ce Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Mon, 2 May 2016 20:55:51 +0530 Subject: Defunkt friendica site configuration This is no longer used. There for historical reasons. --- nginx/sites-available/samsargika.copyninja.info | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 nginx/sites-available/samsargika.copyninja.info diff --git a/nginx/sites-available/samsargika.copyninja.info b/nginx/sites-available/samsargika.copyninja.info new file mode 100644 index 0000000..9a54d9c --- /dev/null +++ b/nginx/sites-available/samsargika.copyninja.info @@ -0,0 +1,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; + } +} -- cgit v1.2.3