2012/4/15 Adnan RIHAN <adnan at rihan.fr>:
> location / {
> return 301 https://$host$request_uri;
> }
> location = /includes/api.php {
> ...
> }
>
> The problem is that I'm on a web hosting service which allow s customers to
> edit an included config file.
>  So, "location /" is a duplicate :/
>
This is valid:
    location / {
      location / {
      }
    }