O nginx try_files tem um bug

1

Eu tenho uma estrutura de diretórios como esta:

/opt/mysite/www:
F: index.html
D: connect/
F: -- index.html
F: -- page.html 

Com o URL link , o try_files resulta em um 301 para: link

Por que o nginx está anexando a porta de escuta?

server {
listen       8080;
server_name  www.mysite.io;
index index.htm index.html /index.htm;
root /opt/mysite/www/;
location / {
            try_files $uri $uri.html $uri/index.html =404;
    }

}
    
por Tim 08.12.2013 / 17:54

0 respostas

Tags