Ticket #551 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

lighttpd doesn't allow underscores in host names

Reported by: me@aaronsw.com Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.10
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

If I try to visit mister_fab.infogami.com, lighttpd returns a 400 Bad Request error. How do I get it to stop?

Attachments

Change History

02/28/2006 12:18:19 PM changed by bkw

Underscores are NOT valid in hostnames for A-Records (and MX btw.) and should not be accepted by the infogami registration. Although there actually is an rfc wich allows underscores (RFC1033), it is mostly regarded as a mistake and has Status "Unknown". Rfc1035 however is labeled "Standard" and does not allow them.

Since wildcard dns records are so popular these days, Jan might choose to allow more characters (his personal choice) but you're far better off avoiding underscores in hostnames.

02/28/2006 04:28:18 PM changed by aaronsw

RFC 1035 makes it clear that these are _conventions_ (the title of the section is "Conventions"). And while I would tend to agree that infogami should enforce these recommendations, lighttpd certainly shouldn't, because it prevents applications that use domain names in a non-standard way from working

http://foo_bar.fred.theinfo.org/ (you can change the foo_bar bit) is a sort of silly example but I see no good reason why it shouldn't work. (And it does with Apache.)

02/28/2006 09:37:04 PM changed by bkw

OK, it's a convention, but then again, so is most of tcp/ip (or communication in general).

But Jon tought us to be liberal what we accept, so yes, I do agree with you.

btw http://foo_bar.fred.theinfo.org/ was an interesting read, had its lengths near the end though ;-)

03/28/2006 02:55:22 AM changed by moo

  • type changed from defect to enhancement.

relative enhancement: #602

to break standard or not to, it's a problem


Add/Change #551 (lighttpd doesn't allow underscores in host names)




Change Properties