Forum Discussion
nolatipu
Nimbostratus
Jun 15, 2020redirect from http (port 80) to https (port 443) not working
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). When I hit https://marketplace.mydomain.com it works perfectly fine whereas when I hit http://marketpl...
youssef1
Cumulonimbus
Jun 15, 2020Hello,
You have to listen on http service too:
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
}https://linuxize.com/post/redirect-http-to-https-in-nginx/
regards
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects