I have a root directory defined in main config file in http {...}. The problem part of config is following:
server {
listen 80;
server_name localhost.dev;
location /89262207055 {
root /89262207055/;
location /file {
alias index.php?id=file&name=;
}
rewrite ^(.*).html$ index.php?id=block&block=$1;
}
}
When I start nginx it tells that location "/file" is outside location "/89262207055". I don't have any ideas, why is it. Found lots of exmaples on the net and my config seems to be correce, but it isn't.
And also the rewrite here doesn't work at all. There're entries in log, that show it.
server {
listen 80;
server_name localhost.dev;
location /89262207055 {
root /89262207055/;
location /file {
alias index.php?id=file&name=;
}
rewrite ^(.*).html$ index.php?id=block&block=$1;
}
}
When I start nginx it tells that location "/file" is outside location "/89262207055". I don't have any ideas, why is it. Found lots of exmaples on the net and my config seems to be correce, but it isn't.
And also the rewrite here doesn't work at all. There're entries in log, that show it.