Ajout : cyclocoop.org : force /administrator en https:// .
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Sat, 25 May 2013 12:50:56 +0000 (14:50 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Sat, 25 May 2013 12:55:40 +0000 (14:55 +0200)
etc/nginx/site.d/cyclo-www/local.conf
etc/nginx/site.d/cyclo-www/site.conf

index 56b9f1c..3d4d2a8 100644 (file)
@@ -1 +1,4 @@
 listen 80;
+location ~ ^/administrator(/.*|$) {
+       return 301 https://$host$request_uri;
+ }
index 308d38f..63387ec 100644 (file)
@@ -16,7 +16,7 @@ location ~ /\. {
        deny all;
        log_not_found off;
  }
- location ~ \.php(|/.+)$ {
+location ~ \.php(|/.+)$ {
        include /etc/nginx/conf.d/fastcgi.conf;
        set $no_cache "0";
        if ($request_method !~ ^(GET|HEAD)$) {