Thuan

Thuan

Under review

Hi,

I understand that you have auto redirection from http:// to https://, however it works only for www.example.com. When I set up app.example.com, add SSL certificate, the URL https://app.example.com works fine, however http://app.example.com returns 404 Not Found.

I checked the ssl-redirect.conf file and found

# Redirect every request to HTTPS...
server {
     listen 80;
     listen [::]:80;
     server_name .app.example.com;
     return 301 https://$host$request_uri;
}

As you can see, it only handle .app.example.com server name, so it didn't match app.example.com

I changed it to

# just removed the dot
server_name app.example.com;

and it works fine now.

Please fix it.

You may use @ to mention someone.

SSL redirects for http://app.example.com: 404 Not Found

2 total votes
Angel Thuan
  • Dennis moved item to board Under review

    3 months ago
  • Thuan moved item to project Bugs

    4 months ago
  • Thuan created the item

    4 months ago