Wednesday, May 8, 2019

Scheme in servername for httpd respected?

I’ve tried searching to find out the following, but didn’t find a definitive answer / example

I’m looking to see if a web socket request to ws://www.fun.com with the following vhost configuration would work or be discarded

<VirtualHost 192.168.0.1:80> ServerName http://www.fun.com ... </VirtualHost>

Apache docs indicate the scheme is an optional parameter in the servername and most examples I find online don’t have the scheme and add rules and mods to deal with ws or http traffic separately.

I was wondering if the above vhost would work with ws traffic or if I’d need to add another vhost setting with the ws scheme (or better I think just dropping the http scheme and dealing with it all within one vhost config.



No comments:

Post a Comment