You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ed...@ita.org.mo on 2007/02/25 13:10:20 UTC

[users@httpd] http and http3 config ( Virtual Host ) problem

Dear All,

For the Virtual Host config of http and https ( apache 2.2.x ) :

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
...
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain
...
</VirtualHost>

<VirtualHost *:443>
...
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
...
</VirtualHost>

Is these right ?

Edward.


---------------------------------------------------------------------
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] http and http3 config ( Virtual Host ) problem

Posted by ed...@ita.org.mo.
Hello,

I have ever tried to update ( modify ) the config....
BUT it is still the problem of port 80 / 443 !
So, any more help ?

Thanks !

Edward.

Chirouze Olivier wrote:

>This will work. But NameVirtualHost directive is useless as it will not
>work as expected.
>Just remove NameVirtualHost *:443
>
>Olivier
>
>Olivier CHIROUZE
>I&0 Infrastructure
>Volvo Information Technology
> 
>
>  
>
>>-----Original Message-----
>>From: edwardspl@ita.org.mo [mailto:edwardspl@ita.org.mo] 
>>Sent: 26 February 2007 13:05
>>To: users@httpd.apache.org
>>Subject: Re: [users@httpd] http and http3 config ( Virtual 
>>Host ) problem
>>
>>Hello,
>>
>>So... would you mind to give me a sample for both of config ?
>>
>>Edward.
>>
>>Bruno Teixeira wrote:
>>
>>    
>>
>>>The *:443 vhost shouldn't be a NameVirtualHost, because the SSL
>>>handshake doesn't include ServerName information.
>>>
>>>Check this list's archive for this issue.
>>>
>>>Take care
>>>
>>>edwardspl@ita.org.mo wrote:
>>>
>>>      
>>>
>>>>Dear All,
>>>>
>>>>For the Virtual Host config of http and https ( apache 2.2.x ) :
>>>>
>>>>NameVirtualHost *:80
>>>>NameVirtualHost *:443
>>>>
>>>><VirtualHost *:80>
>>>>...
>>>>ServerName www.domain.tld
>>>>ServerAlias domain.tld *.domain.tld
>>>>DocumentRoot /www/domain
>>>>...
>>>></VirtualHost>
>>>>
>>>><VirtualHost *:443>
>>>>...
>>>>ServerName www.otherdomain.tld
>>>>DocumentRoot /www/otherdomain
>>>>...
>>>></VirtualHost>
>>>>
>>>>Is these right ?
>>>>
>>>>Edward.
>>>>
>>>>        
>>>>


---------------------------------------------------------------------
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] http and http3 config ( Virtual Host ) problem

Posted by Chirouze Olivier <ol...@volvo.com>.
This will work. But NameVirtualHost directive is useless as it will not
work as expected.
Just remove NameVirtualHost *:443

Olivier

Olivier CHIROUZE
I&0 Infrastructure
Volvo Information Technology
 

> -----Original Message-----
> From: edwardspl@ita.org.mo [mailto:edwardspl@ita.org.mo] 
> Sent: 26 February 2007 13:05
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] http and http3 config ( Virtual 
> Host ) problem
> 
> Hello,
> 
> So... would you mind to give me a sample for both of config ?
> 
> Edward.
> 
> Bruno Teixeira wrote:
> 
> > The *:443 vhost shouldn't be a NameVirtualHost, because the SSL
> > handshake doesn't include ServerName information.
> >
> > Check this list's archive for this issue.
> >
> > Take care
> >
> > edwardspl@ita.org.mo wrote:
> >
> >> Dear All,
> >>
> >> For the Virtual Host config of http and https ( apache 2.2.x ) :
> >>
> >> NameVirtualHost *:80
> >> NameVirtualHost *:443
> >>
> >> <VirtualHost *:80>
> >> ...
> >> ServerName www.domain.tld
> >> ServerAlias domain.tld *.domain.tld
> >> DocumentRoot /www/domain
> >> ...
> >> </VirtualHost>
> >>
> >> <VirtualHost *:443>
> >> ...
> >> ServerName www.otherdomain.tld
> >> DocumentRoot /www/otherdomain
> >> ...
> >> </VirtualHost>
> >>
> >> Is these right ?
> >>
> >> Edward.
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> 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] http and http3 config ( Virtual Host ) problem

Posted by ed...@ita.org.mo.
Hello,

So... would you mind to give me a sample for both of config ?

Edward.

Bruno Teixeira wrote:

> The *:443 vhost shouldn't be a NameVirtualHost, because the SSL
> handshake doesn't include ServerName information.
>
> Check this list's archive for this issue.
>
> Take care
>
> edwardspl@ita.org.mo wrote:
>
>> Dear All,
>>
>> For the Virtual Host config of http and https ( apache 2.2.x ) :
>>
>> NameVirtualHost *:80
>> NameVirtualHost *:443
>>
>> <VirtualHost *:80>
>> ...
>> ServerName www.domain.tld
>> ServerAlias domain.tld *.domain.tld
>> DocumentRoot /www/domain
>> ...
>> </VirtualHost>
>>
>> <VirtualHost *:443>
>> ...
>> ServerName www.otherdomain.tld
>> DocumentRoot /www/otherdomain
>> ...
>> </VirtualHost>
>>
>> Is these right ?
>>
>> Edward.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>



---------------------------------------------------------------------
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] http and http3 config ( Virtual Host ) problem

Posted by Bruno Teixeira <br...@gmail.com>.
The *:443 vhost shouldn't be a NameVirtualHost, because the SSL 
handshake doesn't include ServerName information.

Check this list's archive for this issue.

Take care

edwardspl@ita.org.mo wrote:
> Dear All,
> 
> For the Virtual Host config of http and https ( apache 2.2.x ) :
> 
> NameVirtualHost *:80
> NameVirtualHost *:443
> 
> <VirtualHost *:80>
> ...
> ServerName www.domain.tld
> ServerAlias domain.tld *.domain.tld
> DocumentRoot /www/domain
> ...
> </VirtualHost>
> 
> <VirtualHost *:443>
> ...
> ServerName www.otherdomain.tld
> DocumentRoot /www/otherdomain
> ...
> </VirtualHost>
> 
> Is these right ?
> 
> Edward.
> 
> 
> ---------------------------------------------------------------------
> 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