Comments (2)
Hi @shynome , I know this is closed issue, but I think using tlsSever.addContext()
will allow you to configure SNI easily (another way is to use SNICallback
). I also quickly implemented a minimal module vhttps that combines virtual host and SNI (although not strictly same as vhost
's usage)
from vhost.
Hi @shynome , wow I just got the email that this was closed, but somehow missed when it was opened. The two solutions to your issue are:
- Use a certificate with a SAN that lists all those alternative domains. This makes the cert valids for all the domains at once, thus making the connection secure for all of them.
- Use SNI when you setup your Node.js HTTP server (Node.js supports SNI). This will allow you to keep using individual certs but through SNI the proper cert will be presented to the browser, keeping the connection secure.
I hope this helps!
As for the proposed idea, I'm not sure if that's possible to directly implement in this module, but if you have an idea for how to go about implementing it, always feel free to open a pull request with an implementation or even a written proposal if you're not sure where to start :) !
from vhost.
Related Issues (16)
- vhost for other web frameworks. HOT 6
- expose private functions? HOT 4
- vhost routes never get hit when ports are mentioned. HOT 15
- Subdomains in localhost HOT 1
- Removing vhosts HOT 7
- Using express vhost behind a reverse proxy HOT 3
- vhost on Firebase Functions HOT 1
- vhost for multiple domain HOT 2
- Same target vhost but different callback HOT 1
- Issues with SEO HOT 6
- req.vhost is undefined HOT 6
- How to have *.domain.com and domain.com work together? HOT 2
- Stop test server HOT 2
- HTTPS Server HOT 1
- Vhost's ending in wildcard do not match. Version 3.0.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vhost.