Welcome! Log In Create A New Profile


redirects not working http to https

Posted by Mark_B 
redirects not working http to https
September 24, 2020 08:43AM
Hello everyone, i hope to have some answers in case of the following:
It looks like redirects from http to https are not working.

sudo nginx -V
nginx version: nginx/1.19.2
built by gcc 8.3.0 (Debian 8.3.0-6)
built with OpenSSL 1.1.1g 21 Apr 2020
TLS SNI support enabled
configure arguments: --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx.pid --with-http_ssl_module --with-http_v2_module --with-ipv6 --with-stream --with-pcre=../pcre-8.44 --with-zlib=../zlib-1.2.11 --with-openssl=/home/beheer/nginx/openssl-1.1.1g --without-http_empty_gif_module --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx

attached is an output of nginx -T

when i preform the following security headers test noting happens:

when i preform the following test:

it tells me that:
1. Your web server does offer support for both HTTP and HTTPS, but does not automatically redirect visitors from HTTP to HTTPS on the same domain.

2. Your web server does not offer an HSTS policy.

What i am i missing?
Hope to hear from you all.

Thanks in advance, and keep up the great work you all do.

open | download - full_nginx_config_output.txt (7.8 KB)
Re: redirects not working http to https
September 25, 2020 09:46AM
the normal debian packege works fine and redirects with the same *-http.conf.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready