You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fikret CAN <fc...@pergelcrm.com> on 2002/12/24 10:22:59 UTC
[users@httpd] Apache2 + mod_ssl + ssl.conf
Hello Apache users,
Recently I gave a try to Apache 2 which I have installed with Redhat 8.0
Server. I added mod_ssl support and wanted to configure a domain on port
443. On /etc/httpd/conf/httpd.conf I have
----------------------httpd.conf -------------------------------------
Include "/etc/httpd/conf.d/*.conf"
....
....
Listen 80
NameVirtualhost 62.248.109.98:80 (ip addr)
<VirtualHost www.domain.com>
ServerName www.domain.com
...
</VirtualHost>
-----------------------End ------------------------------------------
That is name based virtual hosting is OK.
Then I moved to /etc/httpd/conf.d/ and edited ssl.conf. Related settings are
Listen 62.248.109.98:443 (ip adr)
<VirtualHost www.domain.com:443>
ServerName www.domain.com:443
</VirtualHost>
Finally when I restart httpd, I get the following
Starting httpd: [Tue Dec 24 12:25:48 2002] [error] VirtualHost
62.248.109.98:443 -- mixing * ports and non-* ports with a NameVirtualHost
address is not supported, proceeding with undefined results
I used to be sucessful with that configuration on Apache 1.3.27. Now I want
to make it on Apache 2. All my search on the web for that error resulted in
no solution for me. I request your help.
Thanks & wish you a productive week.
İyi Çalışmalar.
Fikret CAN
Pergel Group İletişim Hizmetleri A.Ş
Akkirman Sok. No:59 80220
Nişantaşı - İstanbul
Tel: (0 212) 230 01 91 / 145
Fax: (0 212) 241 59 12
---------------------------------------------------------------------
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] Apache2 + mod_ssl + ssl.conf
Posted by Fikret CAN <fc...@pergelcrm.com>.
Good morning,
I have solved my problem with Apache2 ssl configuration. It was plainly
related to config files.
The installed OS was RedHat 8.0 with Apache 2.
>From my point of view; Everytime when a virtual host in httpd.conf is
defined, It is necessary to define the port also (80).
-----httpd.conf ----
......
Listen 80
VirtualHostname 1.2.3.4
<VirtualHost www.dom1.com:80>
Server name www.dom1.com:80
...
</VirtualHost>
<VirtualHost www.dom2.com:80>
Server name www.dom2.com:80
...
</VirtualHost>
.......
--------------------end of httpd.conf ------------
--------------------ssl.conf ---------------------
Listen 443
<VirtualHost 1.2.3.4:80>
Server name www.dom1.com:443
SSLEngine On
...
</VirtualHost>
------------------end of ssl.conf --------------- ---
İyi Çalışmalar - Good workings.
Fikret CAN
Pergel Group İletişim Hizmetleri A.Ş
Akkirman Sok. No:59 80220
Nişantaşı - İstanbul
Tel: (0 212) 230 01 91 / 145
Fax: (0 212) 241 59 12
---------------------------------------------------------------------
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] Apache2 + mod_ssl + ssl.conf
Posted by Fikret CAN <fc...@pergelcrm.com>.
Thanks Erwin
It no longer gives that port error. However, when I request
https://www.domain.com it keeps waiting. I have just moved my experience
from 1.3.27 to 2.0.
On the other hand
openssl s_client -connect localhost:443 -state -debug
GET / HTTP/1.0
prints the document sucessfully.
Fikret.
----- Original Message -----
From: "Erwien Samantha Y" <ap...@cosinus.sederhana.or.id>
To: <us...@httpd.apache.org>
Sent: Tuesday, December 24, 2002 7:18 PM
Subject: Re: [users@httpd] Apache2 + mod_ssl + ssl.conf
>
> >
> > Listen 80
> > NameVirtualhost 62.248.109.98:80 (ip addr)
>
>
> change to
>
> Listen 80
> <IfDefine SSL>
> Listen 80
> Listen 443
> </IfDefine>
> NameVirtualHost 62.248.109.98 (without port)
>
>
>
> good luck !
>
>
> wIEn
>
>
>
>
> ---------------------------------------------------------------------
> 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] Apache2 + mod_ssl + ssl.conf
Posted by Erwien Samantha Y <ap...@cosinus.sederhana.or.id>.
>
> Listen 80
> NameVirtualhost 62.248.109.98:80 (ip addr)
change to
Listen 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
NameVirtualHost 62.248.109.98 (without port)
good luck !
wIEn
---------------------------------------------------------------------
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