Crap, naturally, don't forget "tls" in front of "port 443". Apologies.
On Fri, Mar 2, 2018 at 7:54 AM, Base Pr1me <tlemery5...@gmail.com> wrote: > I should mention for clarification there are two server sections. The > second listens on 443 and does the tls and location heavy lifting. > So, there are two: > > server "example.com" { > listen on $ext_if port 80 > alias "www.example.com" > block return 301 "https://example.com/" > } > server "example.com" { > listen on $ext_if port 443 > alias "www.example.com" > #rest of stuff > } > > On Fri, Mar 2, 2018 at 7:51 AM, Base Pr1me <tlemery5...@gmail.com> wrote: > >> I simply have a block in my httpd.conf for my redirects: >> >> server "example.com" { >> listen on $ext_if port 80 >> alias "www.example.com" >> block return 301 "https://example.com/" >> } >> >> On Fri, Mar 2, 2018 at 7:40 AM, Solène Rapenne <sol...@perso.pw> wrote: >> >>> Le 2018-03-02 15:33, Matt M a écrit : >>> >>>> Why not use a .htaccess redirect? >>>> >>>> https://www.sslshopper.com/apache-redirect-http-to-https.html >>>> >>> >>> .htaccess file is a feature of Apache web server while we are >>> talking about httpd. >>> >>> >> >