Summary Files Commits Branches @commit @diff @stats
path: root / syndamiadotcom
diff options
context:
space:
mode:
Commit24ad25db8171d038e65426ee11da15da8843a7db (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-06-02 12:14:46 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-06-02 12:14:46 +0300
Files608929cc536b7a5058e898df7efc19e82a9a62bd /syndamiadotcom
syndamia.com-24ad25db8171d038e65426ee11da15da8843a7db.tar
syndamia.com-24ad25db8171d038e65426ee11da15da8843a7db.tar.gz
syndamia.com-24ad25db8171d038e65426ee11da15da8843a7db.zip
Parentdba9346c65c72d3c47cffd2d1eaf3ad5d07aaad0 (diff)
Added nginx configuration file, updated sitemap, removed logo files.
1 files changed, 15 insertions, 0 deletions
-rw-r--r--syndamiadotcom15
diff --git a/syndamiadotcom b/syndamiadotcom
new file mode 100644
index 0000000..1520330
--- /dev/null
+++ b/syndamiadotcom
@@ -0,0 +1,15 @@
+# NGINX configuration file for the website
+server {
+ listen 80;
+ root /var/www/syndamiadotcom/website;
+ index index.html;
+ server_name www.syndamia.com;
+
+ # This removes .html extension from url (https://stackoverflow.com/a/38238001/12036073)
+ location / {
+ if ($request_uri ~ ^/(.*)\.html$) {
+ return 302 /$1;
+ }
+ try_files $uri $uri.html $uri/ =404;
+ }
+}