My configuration is like this
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/var/www/hiawatha
VirtualHost {
Hostname = 192.168.122.78
WebsiteRoot = /var/www/my-domain/public
RequireTLS = yes
}
so if I go http://192.168.122.78 it will redirect me to proper site with SSL
but if the client has a mapping device1->192.168.122.78 , http://device1 will go to the default page rather than the virtual server.
Also if 192.168.122.78 is behind a NAT with a public ip 10.0.0.1 and the ports are forwarded. http://10.0.0.1 will also goto the default page rather than the virtual server.
Is there someway to force the virtual server to be default - or to make the default server requireTLS?