On Sun, Jun 11, 2000 at 07:37:03PM +1000, Paul Robinson wrote:
> I use dyndns to get a hostname.. which is why I was hoping to get virutal
> hosts working off of a name only, which it would hopefully then resolve and
> everything would be fine..
>
> I guess fixed IP is the only way :(
nonsense - in your ip-up script (or some dhcp script or something for
cable), just put something like this:
myip=$4 # for ip-up, `hostname -i` or something otherwise
sed "s/@MYIP@/$myip/g" \
< /etc/apache/httpd.conf.orig > /etc/apache/httpd.conf
/etc/init.d/apache/reload
and httpd.conf.orig is just a copy, with @MYIP@ instead of any
specific ip address
--
- Gus
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text