Firefox与Chrome的行为不同的301redirect

我有这个nginxconfiguration:

worker_processes 1; error_log /home/paolino/error.log notice; events {worker_connections 1024;} http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 443 ssl; server_name lambdasistemi.net; ssl_certificate /home/paolino/lambdasistemi.net.crt; ssl_certificate_key /home/paolino/lambdasistemi.net.key; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location /reactivegas/ { include scgi_params; scgi_pass localhost:8000; } location /static { return 301 http://lambdasistemi.net$request_uri; } } server { listen 80; location /reactivegas/ { return 301 https://lambdasistemi.net/reactivegas; } location /static { root /var/http; } } upstream php { server unix:/var/run/php-fpm/php-fpm.sock; } include /etc/nginx/sites-enabled/*; } 

http://lambdasistemi.net/reactivegas在Firefox上工作,但在铬上我得到了404。https : //lambdasistemi.net/reactivegas在Firefox上工作,但在铬上redirect到http的链接不加载。

铬不尊重301或我已经使用不符合规定的方法?

谢谢

保利诺

当你键入/ reactivegas /时,它在Chrome中工作正常,所以问题就是这样:

  location /reactivegas/ { return 301 https://lambdasistemi.net/reactivegas; } 

编辑,而不是:

  location /reactivegas { return 301 https://lambdasistemi.net/reactivegas; } 

它应该工作。