Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving both http/https (non-ssl/ssl) #548

Closed
TonyBrobston opened this issue Aug 3, 2019 · 2 comments
Closed

Serving both http/https (non-ssl/ssl) #548

TonyBrobston opened this issue Aug 3, 2019 · 2 comments

Comments

@TonyBrobston
Copy link

Motivation / use case for feature?
I'm needing to serve non-ssl and ssl. I'm able to serve either non-ssl or ssl but not both. Using Chrome Developer tools "Audit" which uses Lighthouse, I can test my application to see if I have regressed from 100% on performance, accessibility, best practices, seo, pwa, etc.

Environment

  • http-server version: 0.11.1
  • Platform: Vanilla html/javascript

Other information (related issues, suggestions for a fix, etc):
This is the explanation from Lighthouse:
image
In order for me to fix the redirect, I need http-server to serve both http and https.

This link likely won't help, but this is the repo/branch:
https://github.com/TonyBrobston/jpegasus-demo/tree/run-locally-with-ssl

@thisIsTheFoxe
Copy link

check out #598

@thornjad
Copy link
Member

Duplicate of #273

@thornjad thornjad marked this as a duplicate of #273 Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants