Welcome! Log In Create A New Profile

Advanced

http to https not working.

Posted by araz.valizada 
http to https not working.
December 04, 2019 07:57AM
Hello. i installed nginx version: nginx/1.16.1
created virtual host and added both http and https. when i want to enter app without https, it does not work. but when i add https to app address it works. my virtual host conf:
server {
listen ip address:80;
server_name domain_name;
return 301 https://$server_name$request_uri;
}



server {
listen ip_address:4433;
server_name domain name;
root /var/www/app_name/public;
index index.php index.html index.htm;
ssl on;

ssl_certificate /etc/nginx/ssl/cert-2.cer;

ssl_certificate_key /etc/nginx/ssl/private2.key;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready