Forum Moderators: phranque
NameVirtualHost 128.*.*.*
<VrtualHost 128.*.*.*>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www
ServerName www.***.org
</VirtualHost>
However, ip address also still showed in the address bar.
And I also can use www.***.org/path to visit the folder on my computer.
But how to configure the server to show the domain name in the address bar?
Thanks very much.
Welcome to WebmasterWorld!
I suspect your use of the term "forwarded" in your description.
You should register your domain, go to the "DNS Zone file" for your domain, and set the "A record" for your Web domain to specify the IP address of your machine. If you are using some kind of "domain forwarding" service, then it's likely that they are doing a 301/302 redirect to your IP address, which changes the browser address bar.
Jim
This is not a strictly-defined term, there are many ways to "forward" a domain, and many of them are very bad from a site maintenance and/or search engine optimization viewpoint. Domain forwarding is a work-around used to mask some of the drawbacks of free or cheap hosting, and also by some as an attempt to 'hide' online. There are dangers in it as well, but I don't care to elaborate here.
In many cases, the setup and administration of a site is much simpler with a straightforward domain registration and site hosting plan.
If you have registered a domain name, contact the company that provides your nameservers and ask them how to update your DNS records -- This is often in their FAQ section.
Jim
After I clicked on the "add new a record", <another interface popped out.>
So I only need to enter my host name and put the IP address of my server into the "Enter Points To IP Address" and save.
Is that all I need to do?
Thanks very much.
[edited by: jdMorgan at 1:53 am (utc) on June 9, 2005]
[edit reason] Removed links per TOS. [/edit]