httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] How to setup http links on local machine with dynamically alocated IP address
Date Mon, 04 Aug 2008 09:03:39 GMT
On Thu, Jul 31, 2008 at 11:08, Bogdan Cristea <cristeab@gmail.com> wrote:
> For a Apache server in a local LAN with DHCP I want to use in a http link
> the actual IP address of a machine. Is this possible when the IP address is
> dynamically allocated?
> Example: I want to replace in "http://localhost/~bogdan/" localhost with the
> actual IP address without needing to change each time the link when the IP
> address changes.

you can always use the IP address, eg:

http://192.168.1.12/some/page.html

But if your IP address changes, than you have to change the IP you use
in the link. If you keep using the old IP your browser will not be
able to contact your server. There is no solution to this.
However, just use relative links on your webpages, and you should be fine.

Krist





-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message