apache domain names are case sensitive

Posted by neubert on Server Fault See other posts from Server Fault or by neubert
Published on 2013-06-24T22:10:46Z Indexed on 2013/06/24 22:23 UTC
Read the original article Hit count: 241

Filed under:
|

The following HTTP request results in a "See the error log for more details; Invalid Value Found For Domain" error:

GET / HTTP/1.0
Host: www.MyWebsite.com

If I make the hostname all lowercase, however, it works just fine.

How can I make Apache case insensitive? Here's my httpd.conf file:

<VirtualHost *:80>
    ServerName mywebsite.com
    ServerAlias www.mywebsite.com

        ...
</VirtualHost>

I tried adding ServerAlias www.MyWebsite.com to that but that didn't help. And in any event, it seems like that's a poor approach anyway since the case can be mixed up in a ton of different ways and trying to account for all of them would result in a huge *.conf file.

Any ideas?

Thanks!

© Server Fault or respective owner

Related posts about apache2

Related posts about virtualhost