nginx: fix letsencrypt redirect
This commit is contained in:
		
							parent
							
								
									e73fc0f951
								
							
						
					
					
						commit
						46ab866076
					
				@ -83,7 +83,9 @@ in
 | 
			
		||||
        alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      rewrite ^(.*) https://$host$1 permanent;
 | 
			
		||||
      location / {
 | 
			
		||||
        rewrite ^(.*) https://$host$1 permanent;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    server {
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,9 @@
 | 
			
		||||
          alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        rewrite ^(.*) https://gebner.org$1 permanent;
 | 
			
		||||
        location / {
 | 
			
		||||
          rewrite ^(.*) https://gebner.org$1 permanent;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user