apache virtual host problem
Ashley Benton
meggalen at gmail.com
Mon Feb 4 20:15:39 UTC 2008
I deleted everything, and just left, name server and server alias... in the
<VirtualHost> </VirtualHost> files.
The result is the same. I can open the link of the page I moved with Windows
but not with my computer. When I try to open the page directly Firefox and
internet explorer they write "can't find the server at LinuxAbcd.org" I
guess it's because I didn't buy a domain name for this two sites. and I will
do it later.
Now If I open (file://www.linuxabcd.org) the Swebsite or linux abcd from the
computer it is on I see my system directory.
If I try to open on the windows computer (
http://192.168.0.105/www.linuxabcd.org or
file://192.168.0.105/www.linuxabcd.org) It says "the requested URL was not
found on this server" (apache 2.2.4 Ubuntu server at 192,168.0.105 port 80
The last part I don't understand because when I installed apache2 and the
first site I was able to open it by writing the private IP of the computer
before I bought the domain name. Now shouldn't I be able to open the other
sites with the internal Ip, followed by the server name?
Does anybody see a reason why I seem to be unable to configure more than 1
virtual host?
Thank you
Meg
On Feb 4, 2008 2:09 PM, Ashley Benton <meggalen at gmail.com> wrote:
> I will try again like you say and delete everything that I put in every
> other files. I still have one question. Last night I copy my second site
> main page, put it in the first site folder, and change the links to have the
> first site open it where it was. It didn't work with my computer using
> Ubuntu 7.10, but it worked with Windows.
> If I try to see it with internet explorer and Firefox using Windows it
> works.
> If I try to see it using Firefox and Ubuntu 7.10 I can't see neither the
> links nor the other page?
> Do I have to put it in the list of file, inside the host configuration?
> I think I am missing something very easy and important but I have been
> reading and searching and I didn't find out yet.
> From what you say I imagine that I don't have to add NameVirtualHost in
> /etc/apache2/ports.conf. so I will delete it too. I have been trying some
> more last night and I am stuck.
> Thank you for your answer, I will change the files back and let you know
> the result.
> Meg
>
>
> On Feb 4, 2008 10:56 AM, Derek Broughton <news at pointerstop.ca> wrote:
>
> > Ashley Benton wrote:
> >
> > > Sorry I have NameVirtualHost 192.168.0.105 on the first line and
> > > <VirtualHost 192.168.0.105 > on the second line.
> > > Meg
> >
> > Karl's leading you astray...
> >
> > One only needs NameVirtualHost to specify an IP if you have multiple
> > interfaces to the Internet. For this, and almost certainly for your
> > production version, you want:
> >
> > NameVirtualHost *
> >
> > <VirtualHost *>
> > ServerName example.org
> > ...
> > </VirtualHost>
> >
> > <VirtualHost *>
> > ServerName another.org
> > ...
> > </VirtualHost>
> >
> > From your original mail:
> >
> > > I tried to add the following lines in /etc/apache2/http.conf
> > > ServerName localhost
> > > ServerName www.example1.com
> > > ServerName www.example2.com
> > > ServerName www.Example.org
> >
> > That's bad :-) You want the ServerName directives for each virtual host
> > _only_ within the <VirtualHost> definition.
> >
> > (and we don't ever modify http.conf! - put each virtual host config in a
> > separate file in /etc/apache2/sites-enabled)
> > --
> > derek
> >
> >
> > --
> > 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/20080204/68a3bc9d/attachment.html>
More information about the ubuntu-users
mailing list