How to give hostname to my lighttpd server?
Added by Mahendra Liya over 13 years ago
Hello,
I am running my web server on 192.168.0.1.
In my lighttpd.conf file, I have
server.bind = "192.168.0.1"
I access my webpages through url: "http://192.168.0.1/index.html"
My problem is that I want to access it using "http://myhostname.com/index.html"
I have changed the hostname in "/etc/hosts" and "/etc/hostname" to "myhostname.com"
Now I am able to access the webpages using "http://myhostname.com/index.html" ONLY ON MY MACHINE.
I CAN NOT ACCESS IT FROM OTHER MACHINES IN THE SAME NETWORK with this url.
I even tried with server.name = "myhostname.com"
Can anybody help me with this.
Thanks in advance.