Skip to content

Redirect from http to https #127

@zevero

Description

@zevero

Hi,
I am trying to redirect a subdomain from http to https very similar to the example given in readme.

80: {
  router: {
    "sub.atlashost.eu": "https://sub.atlashost.eu/[path]",
    "*": 8080
  }
}, 
443: {
  router: {
    "sub.atlashost.eu":    4500
  },
  ssl: {
    letsencrypt: true,
    spdy: true
  }  
}    

this is working for any path, but root is NOT redirected and I am getting 404 Not Found instead.

As I only need a redirect to the root I tried (with and without trailing "/" )

"sub.atlashost.eu": "https://sub.atlashost.eu",

but now there is NO redirect and http - request are just going through ... to port 4500 although it is not mentioned in the upper section!!

I am doing sudo systemctl restart http-master after each change and restarting my express app does not help either. I even did reboot my entire server. I tried to disable spdy as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions