How do i change the 'localhost' address to something like 'www.testdomain.com'
Posted by: Yvoske (---.dsl.bbeyond.nl)
Date: October 13, 2010 10:14AM

Hi there,

I'm currently running a website on my localhost, but
i need to test the inner url's of the site.
Also by putting the site files in different directories, etc.
to avoid problems when i put it live.

So here's the question:
how do i change the 'http://localhost' to something like 'http://www.testdomain.com'.

Kind regards:-)



Edited 1 time(s). Last edit at 10/13/2010 01:46PM by Yvoske.

Options: ReplyQuote
Re: How do i change the 'localhost' address to something like 'www.testdomain.com'
Posted by: yfastud (Moderator)
Date: October 13, 2010 03:54PM

You need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie domain(s) to your Wamp PC, and VH to host multiple domains/websites and even you have only 1 domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; then you can access locally w/ 'http://site'; if dont have real domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: How do i change the 'localhost' address to something like 'www.testdomain.com'
Posted by: colnector (---.bb.netvision.net.il)
Date: October 17, 2010 02:30AM

Change your windows hosts file and add [www.testdomain.com] to relate to your localhost IP 127.0.0.1

Also change apache's httpd.conf and set ServerName and/or ServerAlias

Options: ReplyQuote


Sorry, only registered users may post in this forum.