nginx https redirections Too Many Redirections error -


i have config:

server {     listen 80;     server_name example.com;     rewrite ^/(.*) https://example.com/$1 permanent; }  server {         listen 443 ssl;          root /var/www/laravel/public;         index index.php index.html index.htm;          server_name for1ever.com;          ssl on;         ssl_certificate /home/carta/for1ever.com.chained.crt;         ssl_certificate_key /home/carta/for1ever.com.key; 

im trying redirect -> https://example.com (non-www) recieve this: err_too_many_redirects


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -