[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: redirect non-SSL
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: redirect non-SSL api page to SSL version. |
Date: |
Wed, 03 May 2017 14:04:05 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 00c137e redirect non-SSL api page to SSL version.
00c137e is described below
commit 00c137e6ff063b41fa2d478afa825482243ecf7f
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 3 14:03:57 2017 +0200
redirect non-SSL api page to SSL version.
---
etc/nginx/sites-enabled/api.site | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/etc/nginx/sites-enabled/api.site b/etc/nginx/sites-enabled/api.site
index 29c51fb..f10a97b 100644
--- a/etc/nginx/sites-enabled/api.site
+++ b/etc/nginx/sites-enabled/api.site
@@ -1,19 +1,7 @@
server {
- listen 80;
- listen [::]:80; ## listen for ipv4; this line is default and implied
- # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+ listen 80;
+ listen [::]:80;
+ server_name api.taler.net
- root /var/www/technical_documentation/api/_build;
-
- # Make site accessible from http://localhost/
- server_name api.taler.net;
- server_name www.api.taler.net;
-
- location / {
- autoindex off;
- ssi on;
-# ssi_last_modified on;
- }
-
- include conf.d/favicon_robots;
+ rewrite ^ https://$host$request_uri? permanent;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: redirect non-SSL api page to SSL version.,
gnunet <=