3

I've registered www.❺➠.ws, which goes to the same IP as www.naildrivin5.com.

curl www.❺➠.ws

returns the homepage of www.naildrivin5.com. No problem. I modify apache to use name-based virtual hosts as follows:

<VirtualHost the.ip.address.here:80>
ServerName xn--dfi5d.ws
DocumentRoot /home/foo/xn--dfi5d.ws/html

(the xn--dfi5d.ws is the punycode version, and my understand is that is how you set up apache for IDNs)

Both Firefox and Safari successfully find the new homepage I have configured.

However, curl is not working quite right. curl www.❺➠.ws still returns the www.naildrivin5.com homepage, while curl xn--dfi5d.ws returns the www.❺➠.ws hompage.

I tried using -H "Host: www.❺➠.ws" to see if setting that header explicitly was required, but it seems not.

I'm running curl on OS X and pasting those characters into the Terminal.app.

My main concern is that I've properly set up Apache to correctly route requests to www.❺➠.ws to the right place (i.e. not to www.naildrivin5.com).

Any curl experts have some suggestions on how to diagnose this?

1 Answers1

2

I get the naildrivin5.com site when I go to www.❺➠.ws or www.xn--dfi5d.ws in Chrome. If I leave off the www, I get the ❺➠.ws site.

You need to add the case for www:

<VirtualHost the.ip.address.here:80>
ServerName xn--dfi5d.ws
ServerAlias www.xn--dfi5d.ws
DocumentRoot /home/foo/xn--dfi5d.ws/html
</VirtualHost>