You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by francesca <fr...@simply.it> on 2004/01/14 15:41:29 UTC
[users@httpd] virtual hosts
I have a problem with virtual hosts.
My server is windows 2000 server and Apache is on the port 81.
On the port 80 I have IIS.
This is my configuration, why It doesn't works?
Listen 81
NameVirtualHost *
<VirtualHost *>
ServerAdmin domain@simply.it
DocumentRoot /htdocs/
ServerName www.simply.it
</VirtualHost>
<VirtualHost *>
ServerAdmin domain@simply.it
DocumentRoot /picturebank/
ServerName www.picturebank.it
</VirtualHost>
The error log tells me the there are overlap on port 81 and that virtual hosts for Ip address doesn't exist!
Re: [users@httpd] virtual hosts
Posted by francesca <fr...@simply.it>.
APache tells me:
Error CAnnot resolve host name simply.it ------- ignoring!
Cannot resolve picturebank.it -------- ignoring!
----- Original Message -----
From: "Louis Wevers" <fr...@netscape.net>
To: <us...@httpd.apache.org>
Sent: Wednesday, January 14, 2004 3:51 PM
Subject: Re: [users@httpd] virtual hosts
> Hmmm,
>
> I think the NameVirtualHost * should kill the system. Try something like
> this:
> Listen 81
> NameVirtualHost simply.it:81
> <VirtualHost *>
> ServerAdmin domain@simply.it <ma...@simply.it>
> DocumentRoot /htdocs/
> ServerName www.simply.it <http://www.simply.it>
> </VirtualHost>
>
> <VirtualHost simply.it:81>
> ServerAdmin domain@simply.it <ma...@simply.it>
> DocumentRoot /picturebank/
> ServerName www.picturebank.it <http://www.picturebank.it>
> </VirtualHost>
>
> I Guess that should do the trick.
>
> Cheers,
> Louis Wevers
> francesca@simply.it wrote:
>
> > I have a problem with virtual hosts.
> > My server is windows 2000 server and Apache is on the port 81.
> > On the port 80 I have IIS.
> >
> > This is my configuration, why It doesn't works?
> >
> > Listen 81
> > NameVirtualHost *
> > <VirtualHost *>
> > ServerAdmin domain@simply.it <ma...@simply.it>
> > DocumentRoot /htdocs/
> > ServerName www.simply.it <http://www.simply.it>
> > </VirtualHost>
> >
> > <VirtualHost *>
> > ServerAdmin domain@simply.it <ma...@simply.it>
> > DocumentRoot /picturebank/
> > ServerName www.picturebank.it <http://www.picturebank.it>
> > </VirtualHost>
> >
> >
> > The error log tells me the there are overlap on port 81 and that
> > virtual hosts for Ip address doesn't exist!
> >
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] virtual hosts
Posted by Louis Wevers <fr...@netscape.net>.
Ooops, forgot to change one of the <VirtualHost *> directives. Anyway,
this is what I ment in how things should look:
Listen 81
NameVirtualHost simply.it:81
<VirtualHost simply.it:81>
ServerAdmin domain@simply.it <ma...@simply.it>
DocumentRoot /htdocs/
ServerName www.simply.it <http://www.simply.it>
</VirtualHost>
<VirtualHost simply.it:81>
ServerAdmin domain@simply.it <ma...@simply.it>
DocumentRoot /picturebank/
ServerName www.picturebank.it <http://www.picturebank.it>
</VirtualHost>
Cheers,
Louis
> francesca@simply.it wrote:
>
>> I have a problem with virtual hosts.
>> My server is windows 2000 server and Apache is on the port 81.
>> On the port 80 I have IIS.
>>
>> This is my configuration, why It doesn't works?
>>
>> Listen 81
>> NameVirtualHost *
>> <VirtualHost *>
>> ServerAdmin domain@simply.it <ma...@simply.it>
>> DocumentRoot /htdocs/
>> ServerName www.simply.it <http://www.simply.it>
>> </VirtualHost>
>>
>> <VirtualHost *>
>> ServerAdmin domain@simply.it <ma...@simply.it>
>> DocumentRoot /picturebank/
>> ServerName www.picturebank.it <http://www.picturebank.it>
>> </VirtualHost>
>>
>>
>> The error log tells me the there are overlap on port 81 and that
>> virtual hosts for Ip address doesn't exist!
>>
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] virtual hosts
Posted by Louis Wevers <fr...@netscape.net>.
Hmmm,
I think the NameVirtualHost * should kill the system. Try something like
this:
Listen 81
NameVirtualHost simply.it:81
<VirtualHost *>
ServerAdmin domain@simply.it <ma...@simply.it>
DocumentRoot /htdocs/
ServerName www.simply.it <http://www.simply.it>
</VirtualHost>
<VirtualHost simply.it:81>
ServerAdmin domain@simply.it <ma...@simply.it>
DocumentRoot /picturebank/
ServerName www.picturebank.it <http://www.picturebank.it>
</VirtualHost>
I Guess that should do the trick.
Cheers,
Louis Wevers
francesca@simply.it wrote:
> I have a problem with virtual hosts.
> My server is windows 2000 server and Apache is on the port 81.
> On the port 80 I have IIS.
>
> This is my configuration, why It doesn't works?
>
> Listen 81
> NameVirtualHost *
> <VirtualHost *>
> ServerAdmin domain@simply.it <ma...@simply.it>
> DocumentRoot /htdocs/
> ServerName www.simply.it <http://www.simply.it>
> </VirtualHost>
>
> <VirtualHost *>
> ServerAdmin domain@simply.it <ma...@simply.it>
> DocumentRoot /picturebank/
> ServerName www.picturebank.it <http://www.picturebank.it>
> </VirtualHost>
>
>
> The error log tells me the there are overlap on port 81 and that
> virtual hosts for Ip address doesn't exist!
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org