Re: httpd howto redirect port 80 to 443 in vm

2018-03-03 Thread niya
hi everyone On 02/03/2018 18:45, contact - ulysse lab wrote: Put into /etc/httpd.conf : types { include "/usr/share/misc/mime.types" } server "default" {     listen on * tls port 443     tls certificate "/etc/letsencrypt/live/example.com/fullchain.pem"     tls key

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread contact - ulysse lab
Put into /etc/httpd.conf : types { include "/usr/share/misc/mime.types" } server "default" {     listen on * tls port 443     tls certificate "/etc/letsencrypt/live/example.com/fullchain.pem"     tls key "/etc/letsencrypt/live/example.com/privkey.pem"     root

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread michael
Betreff: Re: httpd howto redirect port 80 to 443 in vm Hi On 27/02/2018 11:18, Solène Rapenne wrote: > Le 2018-02-27 07:58, Mischa Peters a écrit : >>> On 27 Feb 2018, at 05:04, niya <niyal...@gmail.com> wrote: >>> >>> hi >>> using vmd in openbsd 6.2 >>

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread Base Pr1me
Crap, naturally, don't forget "tls" in front of "port 443". Apologies. On Fri, Mar 2, 2018 at 7:54 AM, Base Pr1me 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,

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread Base Pr1me
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/; }

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread Base Pr1me
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 wrote: > Le 2018-03-02 15:33, Matt

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread Solène Rapenne
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.

Re: httpd howto redirect port 80 to 443 in vm

2018-03-02 Thread Matt M
Why not use a .htaccess redirect? https://www.sslshopper.com/apache-redirect-http-to-https.html On Thu, Mar 1, 2018 at 7:18 AM Bryan Harris wrote: > Alternate?: go back to original config and change > > server "default" > > to > > server "example.com" > > And maybe an

Re: httpd howto redirect port 80 to 443 in vm

2018-03-01 Thread Bryan Harris
Alternate?: go back to original config and change server "default" to server "example.com" And maybe an alias for "www.example.com." Just a thought. V/r, Bryan

Re: httpd howto redirect port 80 to 443 in vm

2018-03-01 Thread niya
Hi On 27/02/2018 11:18, Solène Rapenne wrote: Le 2018-02-27 07:58, Mischa Peters a écrit : On 27 Feb 2018, at 05:04, niya wrote: hi using vmd in openbsd 6.2 and following

Re: httpd howto redirect port 80 to 443 in vm

2018-02-27 Thread Solène Rapenne
Le 2018-02-27 07:58, Mischa Peters a écrit : On 27 Feb 2018, at 05:04, niya wrote: hi using vmd in openbsd 6.2 and following http://thecyberrecce.net/2017/01/15/secure-webservers-with-openbsd-6-0-setting-up-httpd-mariadb-and-php/ i have setup openbsd running a webserver

Re: httpd howto redirect port 80 to 443 in vm

2018-02-27 Thread Mischa Peters
> On 27 Feb 2018, at 05:04, niya wrote: > > hi > using vmd in openbsd 6.2 > and following > http://thecyberrecce.net/2017/01/15/secure-webservers-with-openbsd-6-0-setting-up-httpd-mariadb-and-php/ > i have setup openbsd running a webserver > everything installed and the

httpd howto redirect port 80 to 443 in vm

2018-02-26 Thread niya
hi using vmd in openbsd 6.2 and following http://thecyberrecce.net/2017/01/15/secure-webservers-with-openbsd-6-0-setting-up-httpd-mariadb-and-php/ i have setup openbsd running a webserver everything installed and the webserver works via port 80 and 443. i can access the webserver from a remote