Re: Keep a wlan active without Access Point?



Bastien Nocera a écrit :
> On Sun, 2009-06-14 at 12:03 +0530, Ravindra Wankar wrote:
>> For one, I run apache with virtual host entries for the static IP.
>> Secondly, it was just convenient. We develop web based apps and me and
>> my colleagues need to access apache on each other's machines.
>> Previously I could simply copy-paste a url to someone else in an email
>> or a chat window. Now since I have to use localhost for myself, I have
>> to keep changing "localhost" to my fully qualified hostname everytime
>> I send the url to someone else.
> 
> Install nss-mdns, make sure avahi is installed and running, and give out
> your mDNS hostname. IP addresses might change, but the local hostname
> (in my desktop's case, cookie.local.) will stay the same.

You can also use hostnames with something else than mDNS, in case you have some centralized name server running on your network. And then just put this in your /etc/hosts file:

127.0.0.1  localhost
127.1.1.1  myVirtualHost1
127.2.2.2  myVirtualHost2

One way or the other, use hostnames; the small setup effort pays off almost immediately.

Cheers,

Marc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]