You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michelle Konzack <li...@tamay-dogan.net> on 2011/02/12 22:20:39 UTC

[users@httpd] Re: Named virtual host dot local [.local] tld

Hello Richard Sergeant,

Am 2011-02-12 16:29:06, hacktest Du folgendes herunter:
> Today I wanted to add a named virtual host called 'testbed.local'. This

Please do not use .local because it is a special case and  it  is  realy
treated special.  If you need a local domain please use .site or if  you
have a real domain, create a subdomain like me

    tamay-dogan.net -> private.tamay-dogan.net

which will solv any problems.

Note:   <private.tamay-dogan.net> is not resolvable outside
        of my local network because it use <192.168.y.x>.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Re: [users@httpd] Re: [SOLVED] Named virtual host dot local [.local] tld

Posted by Richard Sergeant <ri...@gmail.com>.
I've managed to solve this - for reasons I'm not fully understanding.
Previously I was actually editing an existing named virtual host called
'testbed' and adding the .local to the ServerName directive. Despite
restarting/reloading it refused to stick.

Creating a separate named virtual host 'developer.local', then adding
with a2ensite and reload worked with the .local 'tld' without any
issues.

My guess is there was some caching or other issue with modifying the
existing NVH that restarting or reloading does not 'fix'. That's worth
knowing as I've had issues in the past when editing NVH's and the
changes not appearing to apply.

Thanks all.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Named virtual host dot local [.local] tld

Posted by Eric Covener <co...@gmail.com>.
> Is it actually a stone cold fact that Apache can't cope with .local as I
> don't see any documentation explaining it?

Works just fine for me, doubt it's a bug in your version:

NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
ErrorDocument 404 "this is localhost"
</VirtualHost>
<VirtualHost *:80>
ServerName foo.local
ErrorDocument 404 "this is foo.local"
</VirtualHost>


$ PS1=""

GET http://localhost/xxx
this is localhost

GET http://foo.local/xxx
this is foo.local

GET http://127.0.0.1/xxx
this is localhost

GET http://127.0.0.2/xxx
this is localhost

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Named virtual host dot local [.local] tld

Posted by Richard Sergeant <ri...@gmail.com>.
On Sat, 2011-02-12 at 22:20 +0100, Michelle Konzack wrote:
> Hello Richard Sergeant,
> 
> Am 2011-02-12 16:29:06, hacktest Du folgendes herunter:
> > Today I wanted to add a named virtual host called 'testbed.local'. This
> 
> Please do not use .local because it is a special case and  it  is  realy
> treated special.  If you need a local domain please use .site or if  you
> have a real domain, create a subdomain like me
> 
>     tamay-dogan.net -> private.tamay-dogan.net
> 
> which will solv any problems.
> 
> Note:   <private.tamay-dogan.net> is not resolvable outside
>         of my local network because it use <192.168.y.x>.
> 
> Thanks, Greetings and nice Day/Evening
>     Michelle Konzack
> 
That's not really an ideal solution. For years .local has been
universally used on lans for local only, non-routeable resolution.
Changing this to something else because Apache can't handle it means I
have to break other stuff.

Is it actually a stone cold fact that Apache can't cope with .local as I
don't see any documentation explaining it? The one thing I'm sure of is
it would be documented somewhere as the project documentation is mostly
excellent. The reason for being specific on this is I have a test
Microsoft IIS 6 box (for ASP development) that happily handles
msbox.local on the host header - so I'm inclined to think this could
just be a plain old bug in the version I have.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org