I meant this:
location / {
Not "location = / {" of course.
Thanks!
-------------------------------------------------------
> I have a similar issue.
>
> Do we need separate location directives for each
> and every possible path, or can we do some
> "rewrite" inside location for the main / root
> folder? For example:
>
> location = / {
>
> # rewrite rules come here..
> rewrite "^/adm$" "/wordpress/wp-login.php";
> ....
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_param SCRIPT_FILENAME
> /var/www/example.com/wordpress/wp-login.php
> include /etc/nginx/fastcgi_params;
>
> }
>
>
>
> To me this is cleaner, but want to make sure that
> this is not the less desirable way?
>
> Thanks.