apache virtual host problem

Ashley Benton meggalen at gmail.com
Mon Feb 4 01:44:03 UTC 2008


Sorry I have NameVirtualHost 192.168.0.105 on the first line and
<VirtualHost 192.168.0.105 > on the second line.
Meg

On Feb 3, 2008 8:40 PM, Ashley Benton <meggalen at gmail.com> wrote:

> Ok I thought that what I had done but apparently not. What would be the
> address of my server? the IP of the computer over the network which is
> 192.168.0.105, the 127.0.0.1 which is the hostname or something like that
> or the public IP. I think I tried them all but I can try again, maybe I
> missed something. I'd like to know how to find the server address that would
> avoid me to changed all my files again and again for nothing since I don' t
> seem to get the basic which is what is my server address.
> Yes I have VirtualHost 192.168.0.105 on the first line and <VirtualHost
> 192.168.0.105 > on the second line. Do I need to write it somewhere else?
> Thank you
> Meg
>
> On Feb 3, 2008 8:22 PM, Karl Auer <kauer at biplane.com.au> wrote:
>
> > On Sun, 2008-02-03 at 19:48 -0500, Ashley Benton wrote:
> > > Ok I tried and changed NameVirtualHost 192.168.0.105  for all virtual
> > > hosts and I still got the same result. You can see only the first
> > >                                  <NameVirtualHost 192.168.0.105>
> >
> > Well, you need the NameVirtualHost directive; that specifies the address
> > of your server. All your named virtual hosts will then specify this
> > address. Inside the virtualhost you need to specify the name of the
> > specific site. Something like this:
> >
> > NameVirtualHost 1.2.3.4
> >
> > <VirtualHost 1.2.3.4>
> >   DocumentRoot "/path/to/site/data"
> >   ServerName www.mydomain.com
> >   <Directory "/path/to/site/data">
> >      ...
> >   </Directory>
> > </VirtualHost>
> >
> > >  I have to put a different internal address and how do I tell the
> > > computer to add another internal address?
> >
> > No, you don't need additional addresses - that is the point of named
> > virtual hosts. You only need separate addresses if you will be doing
> > SSL.
> >
> > > I tried to put the first with my public IP and the others with
> > > 192.168.0.105 but it didn't change the result.
> >
> > Not all virtual hosts have to be on the same address. You can have more
> > than one NameVirtualHost directive and group sites together. In your
> > case, however, just use one until you have the basics worked out :-)
> >
> > BTW, next time post your entire config file.
> >
> > Regards, K.
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
> > http://www.biplane.com.au/~kauer/ <http://www.biplane.com.au/%7Ekauer/>                 +61-428-957160 (mob)
> >
> > GPG fingerprint: DD23 0DF3 2260 3060 7FEC 5CA8 1AF6 D9E3 CFEE 6B28
> > Public key at  : random.sks.keyserver.penguin.de
> >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080203/8dfe6c3e/attachment.html>


More information about the ubuntu-users mailing list