Why don't you simply parse the config automatically if the new host
starts and insert the ip-address automatically?
Should be simple using sed.

Thomas




On Fri, 19 Apr 2002 20:42:43 -0400
Scott Ullrich <[EMAIL PROTECTED]> wrote:

> Hi!  I've been trying to configure Mathopd to automatically run on my host
> without having to enter the host's ip address in the virtual root file.  The
> reason I do not want to use the ip address is because I plan on running
> mathopd from automated scripts on a machine that has its filesystem
> read-only.  Here is the configuration file that I am currently using but it
> does not work.  Note, if I replace NoHost with Host <MYIPADDRESS> it works
> as expected but each server will automatically generate it's IP address at
> bootup and the rest of the system is completely automated (hence I do not
> wish to edit the configuration files by hand on each one).
> 
> Umask 026
> 
> Tuning {
>         NumConnections 120
>         BufSize 12288
> }
> 
> User mathopd
> StayRoot On
> 
> PIDFile /tmp/mathopd/pid
> Log /tmp/mathopd/log.%Y%m%d
> ErrorLog /tmp/mathopd/errors.%Y%m
> 
> Control {
>         Symlinks On
>         Types {
>                 text/plain { * }
>                 text/css { css }
>                 application/octet-stream { zip gz tgz exe class }
>                 application/futuresplash { spl }
>                 model/vrml { wrl }
>                 application/pdf { pdf }
>                 text/html { html htm }
>                 image/gif { gif }
>                 image/jpeg { jpg }
>         }
>         Specials {
>                 Imagemap { map }
>                 CGI { cgi }
>                 Redirect { url }
>         }
>         External {
>                 /usr/bin/perl { pl }
>         }
>         IndexNames { index.cgi home.cgi index.html default.html home.html
> index.
> htm index.html redirect.url }
> }
> 
> DefaultName localhost
> 
> Server {
>         Port 80
>         Virtual {
>                 NoHost
>                 Control {
>                         Alias /
>                         Location /usr/local/www
>                         Specials {
>                                 CGI { * }
>                         }
>                 }
>         }
> }
> 
> * * * NOTICE * * *
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify your system manager
> or the sender at [EMAIL PROTECTED]
> 
> 
> 

Reply via email to