You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Sherwood <js...@rgisolutions.com> on 2008/07/21 16:57:34 UTC

[users@httpd] Binding question.

Hello,

I am having trouble binding apache to an ip.  It works fine for port 80 but when I try to add port 443 something goes wrong.

This is what I have:
Listen 192.168.150.12:80
Listen 192.168.150.12:443

NameVirtualHost 192.168.150.12
NameVirtualHost 192.168.150.12:443

<VirtualHost 192.168.150.12:80>
lets say this is mydomain.com
</VirtualHost>

<VirtualHost 192.168.150.12:443>
lets say this is secure.mydomain.com
</VirtualHost>

With this config when I try to access mydomain.com I get a blank page(not page cannot be displayed but a blank page) but secure.mydoman.com works.
If I change the secure virtual host to just <VirtualHost> then mydomain.com works but secure.mydomain.com shows a page cannot be displayed.

What am I doing wrong?

Thanks,
--James

Re: [users@httpd] Binding question.

Posted by James Wuerflein <Ja...@katun.com>.
Change
 
NameVirtualHost 192.168.150.12
to
NameVirtualHost 192.168.150.12:80

>>> 

From: Frank Gingras <fr...@gmail.com>
To:<us...@httpd.apache.org>
CC:Jamie Melanson <JM...@rgisolutions.com>
Date: 7/21/2008 10:02 AM
Subject: Re: [users@httpd] Binding question.
James,

What does the error log say, exactly?

Frank.

James Sherwood wrote:
> Hello,
>
> I am having trouble binding apache to an ip.  It works fine for port 80 but when I try to add port 443 something goes wrong.
>
> This is what I have:
> Listen 192.168.150.12:80
> Listen 192.168.150.12:443
>
> NameVirtualHost 192.168.150.12
> NameVirtualHost 192.168.150.12:443
>
> <VirtualHost 192.168.150.12:80>
> lets say this is mydomain.com
> </VirtualHost>
>
> <VirtualHost 192.168.150.12:443>
> lets say this is secure.mydomain.com
> </VirtualHost>
>
> With this config when I try to access mydomain.com I get a blank page(not page cannot be displayed but a blank page) but secure.mydoman.com works.
> If I change the secure virtual host to just <VirtualHost> then mydomain.com works but secure.mydomain.com shows a page cannot be displayed.
>
> What am I doing wrong?
>
> Thanks,
> --James
>   


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


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_____________________________________________________________________

Re: [users@httpd] Binding question.

Posted by Frank Gingras <fr...@gmail.com>.
James,

What does the error log say, exactly?

Frank.

James Sherwood wrote:
> Hello,
>
> I am having trouble binding apache to an ip.  It works fine for port 80 but when I try to add port 443 something goes wrong.
>
> This is what I have:
> Listen 192.168.150.12:80
> Listen 192.168.150.12:443
>
> NameVirtualHost 192.168.150.12
> NameVirtualHost 192.168.150.12:443
>
> <VirtualHost 192.168.150.12:80>
> lets say this is mydomain.com
> </VirtualHost>
>
> <VirtualHost 192.168.150.12:443>
> lets say this is secure.mydomain.com
> </VirtualHost>
>
> With this config when I try to access mydomain.com I get a blank page(not page cannot be displayed but a blank page) but secure.mydoman.com works.
> If I change the secure virtual host to just <VirtualHost> then mydomain.com works but secure.mydomain.com shows a page cannot be displayed.
>
> What am I doing wrong?
>
> Thanks,
> --James
>   


---------------------------------------------------------------------
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] Binding question.

Posted by Krist van Besien <kr...@gmail.com>.
On Mon, Jul 21, 2008 at 16:57, James Sherwood
<js...@rgisolutions.com> wrote:
> Hello,
>
> I am having trouble binding apache to an ip.  It works fine for port 80 but
> when I try to add port 443 something goes wrong.
>
> This is what I have:
> Listen 192.168.150.12:80
> Listen 192.168.150.12:443
>
> NameVirtualHost 192.168.150.12
> NameVirtualHost 192.168.150.12:443
>
> <VirtualHost 192.168.150.12:80>
> lets say this is mydomain.com
> </VirtualHost>
>
> <VirtualHost 192.168.150.12:443>
> lets say this is secure.mydomain.com
> </VirtualHost>
>
> With this config when I try to access mydomain.com I get a blank page(not
> page cannot be displayed but a blank page) but secure.mydoman.com works.
> If I change the secure virtual host to just <VirtualHost> then mydomain.com
> works but secure.mydomain.com shows a page cannot be displayed.
>
> What am I doing wrong?

Two things:
- The argument to NameVirtualHost needs to be identical to what you
plan to use in your <VirtualHost> blocks.
So this line:
NameVirtualHost 192.168.150.12
Must probably be
NameVirtualHost 192.168.150.12:80

Secondly you should be aware that name based virtual hosts doesn't
really work with ssl...

Krist




-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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