View Single Post

  #2 (permalink)  
Old 07-04-2003
Klaus Johannes Rusch
 
Posts: n/a
Default Re: Apache: modifying localhost URL on HTTP request

Neil Zanella wrote:

> Suppose some webmaster was writing a web page and previewing it at
> http://localhost/foobar. The webmaster has an IP address which changes
> quite often. The webmaster would like the URL to change in mozilla from
> http://localhost/foobar to http://w.x.y.z/foobar where w.x.y.z is the
> IP address of the page. This way, when the webmaster clicks on the W3
> validator button (as shown below), the W3C server does not give a 404
> error of "host localhost not found". At the same time, the webmaster
> does not have to run ipconfig to get the IP address and can simply
> keep using localhost in the URL. As the page is loaded, the
> localhost in the URL changes to w.x.y.z. Is this possible
> with apache?


You need a nameserver to point to your machine (and your machine must be
reachable from the Internet). If you have a dynamic IP address that changes
frequently, look at one of the Dynamic DNS services (such as dyndns.org).
This has nothing to do with Apache.

--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/