Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] Binding question.

Krist van Besien

2008-07-21

Replies: Find Java Web Hosting

Author LoginPost Reply
On Mon, Jul 21, 2008 at 16:57, James Sherwood
<jsherwood@(protected):
> 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@(protected)
krist@(protected)
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.