[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Virtual hosts on a dynamic IP



Um yeah I want the sites to be visible to the world, which is my problem, 
otherwise I'd just use the ip addr..

Call me a pesimist but when apache say u need a NamevirutalHost ip with an 
ip taht your name resolves to it doesn't leave me with much hope.

but I do hope :)

I remember from a discussion ages ago that you could just write a lil 
executable which modifies httpd.conf and restarts the process..

is this viable / safe? (probably not safe at least)

Paul
At 11:19 PM 10/06/00 +1000, ENTERforNone wrote:
>i think what you want is...
>
>NameVirtualHost 127.0.0.1
>
><VirtualHost 127.0.0.1>
>       ServerName nameone.com.au
></VirtualHost>
>
><VirtualHost 127.0.0.1>
>       ServerName nametwo.com.au
></VirtualHost>
>
>and in /etc/hosts
>
>127.0.0.1 nameone.com.au
>127.0.0.1 nametwo.com.au
>
>unless you want this to be seen by the rest of the world it should work..
>
>
>On Sat, Jun 10, 2000 at 10:51:04PM +1000, Paul Robinson wrote:
> > With the recent talks on virtual hosts I decided to give them a go..
> >
> >
> > using the example given in an email of :
> >
> > Listen 1.1.1.1:80
> >
> >
> > NameVirtualHost 1.1.1.1
> >
> > <VirtualHost 1.1.1.1]>
> >       ServerName nameone.com.au
> > </VirtualHost>
> >
> > <VirtualHost 1.1.1.1>
> >       ServerName nametwo.com.au
> > </VirtualHost>
>         >
> > (changing ip's and adding relevant info like document root etc into each
> > virt host)
> >
> > I can get it to work beautifully.. The problem is, being on a dialup 
> with a
> > dynamic ip system it's rather hard to keep updating the ip and restarting
> > the server. I have seen an example where you can use a
> > alpha.betical.host.name and it will work.. the only problem is.. mine
> > doesn't work. I have even tried the example on the apache site where they
> > use names only but the problem is that it just uses the virtual host for
> > everything, even when you type in the original server name.. I can 
> create a
> > virtual host with the servername and it get's ignored, still prefering the
> > first virtual host listed..
> >
> > Help..
> >
> > Thanks,
> >
> > Paul
> >
> > --
> > SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> > To unsubscribe send email to slug-request@nospam.slug.org.au with
> > unsubscribe in the text
>
>--
>enterfornone - insert clever comment here
>http://www.enterfornone.com/
>--
>SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
>To unsubscribe send email to slug-request@nospam.slug.org.au with
>unsubscribe in the text

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text