Welcome! Log In Create A New Profile

Advanced

Re: HTTPS over port 443

August 07, 2018 06:24PM
how about adding
server {
listen 80;
redirect https://$host$request_uri 301; //YYMV as to what destination
you need them to end up at.
}

On Tue, Aug 7, 2018 at 3:58 PM, fugee ohu <fugee279@gmail.com> wrote:

> What do you mean by "also have a port 80 config" ? The port 80 configs
> are my other sites that I haven't created certificates for yet The
> port 80 config for the site in question is commented out in favor of
> `listen 443 ssl;`
>
> On Tue, Aug 7, 2018 at 3:45 PM, basti <mailinglist@unix-solution.de>
> wrote:
> > first of all use wget or curl for testing to bypass browser cache.
> > when you have also a port 80 config and call http://example.com you
> > *must* have a redirect to https. when you call https://example.com it
> > should work, i think (not tested)
> >
> > On 07.08.2018 21:39, fugee ohu wrote:
> >> server {
> >> listen 443 ssl;
> >> ssl_certificate /etc/ssl/certs/sitename/certificate.crt;
> >> ssl_certificate_key /etc/ssl/certs/sitename/private.key;
> >> server_name *.sitename.com www.sitename.com sitename;
> >> charset utf-8;
> >> location / {
> >> root /usr/home/fugee/websites/sitename/public;
> >> rails_env production;
> >> passenger_enabled on;
> >> }
> >> }
> >>
> >> On Tue, Aug 7, 2018 at 3:28 PM, basti <mailinglist@unix-solution.de>
> wrote:
> >>> please show us your config
> >>>
> >>> On 07.08.2018 21:22, fugee ohu wrote:
> >>>> I'm trying to enable site wide ssl over port 443 on a site that runs
> >>>> on http port 80
> >>>> In nginx.conf i have `listen 443 ssl;` for the server but requests for
> >>>> the server get routed to the first available host on port 80, another
> >>>> of my sites also in the nginx.conf How can I diagnose this to see
> >>>> what's going on?
> >>>> _______________________________________________
> >>>> nginx mailing list
> >>>> nginx@nginx.org
> >>>> http://mailman.nginx.org/mailman/listinfo/nginx
> >>>>
> >>> _______________________________________________
> >>> nginx mailing list
> >>> nginx@nginx.org
> >>> http://mailman.nginx.org/mailman/listinfo/nginx
> >> _______________________________________________
> >> nginx mailing list
> >> nginx@nginx.org
> >> http://mailman.nginx.org/mailman/listinfo/nginx
> >>
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTPS over port 443

fugee ohu August 07, 2018 03:24PM

Re: HTTPS over port 443

basti August 07, 2018 03:30PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 03:40PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 03:40PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 03:42PM

Re: HTTPS over port 443

basti August 07, 2018 03:48PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 04:00PM

Re: HTTPS over port 443

jeffdyke August 07, 2018 06:24PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 07:20PM

Re: HTTPS over port 443

Francis Daly August 07, 2018 06:28PM

Re: HTTPS over port 443

fugee ohu August 07, 2018 07:22PM

Re: HTTPS over port 443

Francis Daly August 08, 2018 03:18AM

Re: HTTPS over port 443

fugee ohu August 08, 2018 06:44PM

Re: HTTPS over port 443

Francis Daly August 09, 2018 03:32AM

Re: HTTPS over port 443

fugee ohu August 08, 2018 07:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready