Skip to main content
Tweeted twitter.com/StackWebmasters/status/809914212029964290
edited title
Link
Braiam
  • 210
  • 2
  • 11

What virtual host should I serve when someone hits my webserver without a "Host:" header?

Source Link
Braiam
  • 210
  • 2
  • 11

What virtual host should I serve when someone hits my webserver without "Host:" header?

I have a single instance of nginx serving several virtual hosts with their respective domains on the same ip address. When someone tries to access my ip, they are served one of them, but since my server redirects all requests to https, those client fail. What virtual host should I serve instead? Should I use rewrite to force a specific domain?