OK, here's a sample of my httpd.conf. I tried the
suggestion below and it isn't working. My .conf is
based off of the standard Redhat httpd.conf file. I
installed mod_ssl and it added these lines:
Include conf/ssl/mod_ssl.conf
Include conf/ssl/ssl.default-vhost.conf
So, per the suggestion I made changes and I have this
for virtual hosts:
NameVirtualHost XXX.XXX.XXX.XXX:80
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerName www.mydomain.com
</VirtualHost>
<VirtualHost XXX.XXX.XXX.XXX:443>
ServerName secure.mydomain.com
</VirtualHost>
My problem is simple. Accessing
http://www.mydomain.com won't resolve but
https://www.mydomain.com will which is not right
(I didn't test the actual secure host I defined
secure.mydomain.com)
When I check error_log I see this:
[Thu Aug 24 09:30:05 2000] [notice] caught SIGTERM,
shutting down
[Thu Aug 24 09:30:25 2000] [notice] Apache/1.3.12
(Unix) (Red Hat/Linux) mod_ssl/2.6.6 OpenSSL/0.9.4
PHP/4.0.1pl2 mod_perl/1.21 configured -- resuming
normal operations
Any ideas?
--- Owen Boyle <[EMAIL PROTECTED]> wrote:
> RE: QUESTION FROM TONY BIBBS
>
> Hi Tony,
>
> We have exactly that situation (several HTTP hosts,
> one SSL hosts all on
> one IP address). We resolve it by specifying post 80
> in the
> NameVirtualHost directive, i.e.
>
> NameVirtualHost 192.168.220.1:80
>
> # First HTTP VH
> <VirtualHost 192.168.220.1:80>
> ServerName www1.banana.com
> ......
> </VirtualHost>
>
> # Second HTTP VH
> <VirtualHost 192.168.220.1:80>
> ServerName www2.banana.com
> ......
> </VirtualHost>
>
> # SSL host
> <VirtualHost 192.168.220.1:443>
> ServerName secure.banana.com
> ......
> </VirtualHost>
>
>
> I don't think you can do it if you need *another*
> SSL VH on the same IP
> and Port, however.
>
> Best regards,
>
> Owen Boyle.
> --
> SWX Swiss Exchange, 10 Cours de Rive, 1211 Geneve 3
> --------------------------+-------------------------
> Phone: +41 (0)22 849 5648 | Fax: +41 (0)22 849 5643
>
______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)
> www.modssl.org
> User Support Mailing List
> [EMAIL PROTECTED]
> Automated List Manager
[EMAIL PROTECTED]
=====
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]