You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Neil A. Hillard" <ne...@agustawestland.com> on 2007/09/04 16:25:32 UTC

Re: [users@httpd] More virtualhost with the same Pubblic Ip

Hi,

netmail wrote:
> Hi
> 
> I want configure apache with this site :
> 
> http://Thidlevel.mydomain.com à DNS entry Ok from Pubblic Ip XXX.XXX.XXX.XX1
> 
> http://Test.mydomain.com à DNS Entry ok from the same Pubblic Ip
> XXX.XXX.XXX.XX1
> 
> http://Mywebserver/intranetsite from intranet
> 
>  
> 
> When I configure the virtualHost with the third level domain
> 
> VirtualHost IP:port>
>     DocumentRoot /var/www/mydomain/thirdlevel
>     ServerName IP
>     ErrorLog <ErrorLog file path>
>     CustomLog <AccessLog file path>
> </VirtualHost>
> 
>  
> 
> the http://Mywebserver/intranetsite don’t work and receive the message
> that don’t found the page etc… Why ?

You may find a lack of responses to your question.  Firstly, you will
want to post in plain text format _only_.  Secondly you should include
the exact error message and not your interpretation of it (along with
anything that appears in the error log).

My suspicion is that you have the incorrect ServerName directive.  The
clue is in the name - 'Name'.  Your config snippet has 'ServerName IP'.
 You should not specify the IP address here.

Please refer to
http://httpd.apache.org/docs/2.2/mod/core.html#servername for the
documentation for the ServerName directive.


				Neil.

-- 
Neil Hillard                    neil.hillard@agustawestland.com
AgustaWestland                  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

---------------------------------------------------------------------
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


[users@httpd] R: [users@httpd] R: [users@httpd] More virtualhost with the same Pubblic Ip

Posted by netmail <ne...@elmo.it>.
Thanks 
Now don't received the error messagge !

-----Messaggio originale-----
Da: jslive@gmail.com [mailto:jslive@gmail.com] Per conto di Joshua Slive
Inviato: martedì 4 settembre 2007 17.41
A: users@httpd.apache.org
Oggetto: Re: [users@httpd] R: [users@httpd] More virtualhost with the same Pubblic Ip

On 9/4/07, netmail <ne...@elmo.it> wrote:
> Sorry ..
> When restart the service received:
> [warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

You should use only a single NameVirtualHost directive for each
IP-Address:port. This directive simply tells apache to expect multiple
<VirtualHost> sections for this address.

Joshua.

---------------------------------------------------------------------
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] R: [users@httpd] More virtualhost with the same Pubblic Ip

Posted by Joshua Slive <jo...@slive.ca>.
On 9/4/07, netmail <ne...@elmo.it> wrote:
> Sorry ..
> When restart the service received:
> [warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

You should use only a single NameVirtualHost directive for each
IP-Address:port. This directive simply tells apache to expect multiple
<VirtualHost> sections for this address.

Joshua.

---------------------------------------------------------------------
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


[users@httpd] R: [users@httpd] More virtualhost with the same Pubblic Ip

Posted by netmail <ne...@elmo.it>.
Sorry ..
When restart the service received:
[warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts
[warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

NameVirtualHost localipwebserver
<VirtualHost localipwebserver >
DocumentRoot /var/www/html/
ServerName hostnamewebserver/egroupware
</VirtualHost>

NameVirtualHost localipwebserver
<VirtualHost localipwebserver >
DocumentRoot /var/www/html/
ServerName hostnamewebserver/hinventory
</VirtualHost>

NameVirtualHost localipwebserver
<VirtualHost localipwebserver >
DocumentRoot /var/www/html/mydomain/thirdleveldomain1
ServerName thirdleveldomain1.mydomain.com
<Directory "/var/www/html/ mydomain/thirdleveldomain1">
AllowOverride None
allow from all
Options Indexes
</Directory>
</VirtualHost>

NameVirtualHost localipwebserver
<VirtualHost localipwebserver >
DocumentRoot /var/www/html/mydomain/thirdleveldomain2
ServerName thirdleveldomain2.mydomain.com 
<Directory "/var/www/html/ mydomain/thirdleveldomain2">
AllowOverride None
allow from all
Options Indexes
</Directory>
</VirtualHost>


The website work it correctly but receive the warn message 
thanks

-----Messaggio originale-----
Da: Neil A. Hillard [mailto:neil.hillard@agustawestland.com] 
Inviato: martedì 4 settembre 2007 16.26
A: users@httpd.apache.org
Oggetto: Re: [users@httpd] More virtualhost with the same Pubblic Ip

Hi,

netmail wrote:
> Hi
> 
> I want configure apache with this site :
> 
> http://Thidlevel.mydomain.com à DNS entry Ok from Pubblic Ip XXX.XXX.XXX.XX1
> 
> http://Test.mydomain.com à DNS Entry ok from the same Pubblic Ip
> XXX.XXX.XXX.XX1
> 
> http://Mywebserver/intranetsite from intranet
> 
>  
> 
> When I configure the virtualHost with the third level domain
> 
> VirtualHost IP:port>
>     DocumentRoot /var/www/mydomain/thirdlevel
>     ServerName IP
>     ErrorLog <ErrorLog file path>
>     CustomLog <AccessLog file path>
> </VirtualHost>
> 
>  
> 
> the http://Mywebserver/intranetsite don’t work and receive the message
> that don’t found the page etc… Why ?

You may find a lack of responses to your question.  Firstly, you will
want to post in plain text format _only_.  Secondly you should include
the exact error message and not your interpretation of it (along with
anything that appears in the error log).

My suspicion is that you have the incorrect ServerName directive.  The
clue is in the name - 'Name'.  Your config snippet has 'ServerName IP'.
 You should not specify the IP address here.

Please refer to
http://httpd.apache.org/docs/2.2/mod/core.html#servername for the
documentation for the ServerName directive.


				Neil.

-- 
Neil Hillard                    neil.hillard@agustawestland.com
AgustaWestland                  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

---------------------------------------------------------------------
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