Aloha!
Edited: Inserted #5 in case it is important or convenient. (Oct 28th)
Consider the following scenario, which does actually work.
1. Three VHOSTS: www.example.com, www.example.org, and www.example.net.
2. Each has a corresponding domain name, and each has a domain alias without the www.
3. Each has a rewrite to add www if it is missing, and switch to HTTPS if the request is HTTP.
4. None has SSL configured on the VHOST.
5. Each VHOST has one static context configured, for URI '/', just to add a default charset and a customer header operation to 'set X-Robots-Tag noindex'.
5. Three listeners on port 80, one for each VHOST, and only mapped to that one VHOST with domains set to *.
6. Three listeners on port 443, configured the same as the ones for port 80, plus each has SSL configured on the listener.
Thank you for reading that. Is there a way to simplify this or do it more optimally? Especially, it feels that I should be able to have just two listeners (80 and 443), and map each to all three VHOSTS, and place the SSL config on the VHOSTS. If so, could you please explain how? All my attempts have failed. Or if there's any other way to improve on this, please share.
Mahalo,
Steve
Edited: Inserted #5 in case it is important or convenient. (Oct 28th)
Consider the following scenario, which does actually work.
1. Three VHOSTS: www.example.com, www.example.org, and www.example.net.
2. Each has a corresponding domain name, and each has a domain alias without the www.
3. Each has a rewrite to add www if it is missing, and switch to HTTPS if the request is HTTP.
4. None has SSL configured on the VHOST.
5. Each VHOST has one static context configured, for URI '/', just to add a default charset and a customer header operation to 'set X-Robots-Tag noindex'.
5. Three listeners on port 80, one for each VHOST, and only mapped to that one VHOST with domains set to *.
6. Three listeners on port 443, configured the same as the ones for port 80, plus each has SSL configured on the listener.
Thank you for reading that. Is there a way to simplify this or do it more optimally? Especially, it feels that I should be able to have just two listeners (80 and 443), and map each to all three VHOSTS, and place the SSL config on the VHOSTS. If so, could you please explain how? All my attempts have failed. Or if there's any other way to improve on this, please share.
Mahalo,
Steve
Last edited: