diff options
Added nginx configuration file, updated sitemap, removed logo files.
1 files changed, 15 insertions, 0 deletions
| -rw-r--r-- | syndamiadotcom | 15 |
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; + } +} |