Re: [SOLVED] dynamic IP for publicfile

Alexandros Papadopoulos <[email protected]> Mon, 18 Nov 2002 17:57:33 -0500
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 18 November 2002 17:45, Paul Jarc wrote:
> Alexandros Papadopoulos <[email protected]> wrote:
> > I just needed to create a symbolic link to /public/file/0/ with my
> > IP
>
> You only need to do that if browsers are actually sending
> "Host: 1.2.3.4" in the HTTP header.  If they are sending
> "Host: www.your.domain", then you just need a symlink for that name
> (which presumably will not change when your address changes).

Yeap, I do need this, as I don't have a domain registered, and I just 
use a quick'n'dirty redirect page hack to point people to my 
ever-changing IP.

>
> > and restart publicfile, each time my IP changed.
>
> You don't need to do that.  publicfile's httpd is started by
> tcpserver for each connection, so it will always see the latest
> contents of /public/file/.
>

Yes, learned that! :-)

Thanks for the help guys.

- -A
- -- 
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F  D78C 8260 0CC1 0B75 8265
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE92XBdgmAMwQt1gmURAkfqAJ98iinm+4IAABt9vST8K261fAJfZQCfeYqL
8UY+LzCihPNtJrMPg6FZ+Dk=
=ujS4
-----END PGP SIGNATURE-----