Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 54393 invoked by uid 500); 26 Nov 2002 12:25:11 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 54380 invoked from network); 26 Nov 2002 12:25:11 -0000 Message-ID: <3DE366CE.8090503@ifrance.com> Date: Tue, 26 Nov 2002 13:19:26 +0100 From: Estrade Matthieu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-fr, en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: r->server->port problem References: <3DE24FED.30501@ifrance.com> Content-Type: multipart/alternative; boundary="------------030503010500020301010601" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------030503010500020301010601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit My module need to know the r->server->port, i mean the port of virtual host used by the client. in my apache, i have 2 VHOST: The problem happened when i was behind an Intel SSL Accelerator. client https ---> SSL INTEL 443 --> Reverse Proxy 8095 The SSL accelerator is listening on 443, send clear http on port 8095 of my RP as: GET / HTTP/1.1 Host: lala.com \n\n\r ServerName lala.com ProxyPass / http://host1.com ProxyPassReverse.... Servername lala.com redirect / https://lala.com (redirect to HTTPS) my module will find r->server->port = 80 even if the SSL Accelerator is connected on port 8095 It can happen too if i have the same servername in each VHOST. My module is now checking conn->socket->port or something like that... i have no more problem What i find buggy is the correct VHOST is used, if not, the connection should be a loop ! so i am in the correct VHOST and when my module check r->server->port, i find 80 ! Jeff Trawick wrote: >Estrade Matthieu writes: > > > >>I posted a mail about a problem with r->server->port few days ago, >>I did a patch to correct this bug, but i am not sure it's a bug... >> >>the problem was when UseCannonicalName is Off, >> >> > >I don't think it is a bug. > >What exactly does your module need to know? > > > --------------030503010500020301010601 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit My module need to know the r->server->port, i mean the port  of virtual host used by the client.
in my apache, i have 2 VHOST:

The problem happened when i was behind an Intel SSL Accelerator.

client https ---> SSL INTEL 443 --> Reverse Proxy 8095

The SSL accelerator is listening on 443, send clear http on port 8095 of my RP as:
GET / HTTP/1.1
Host: lala.com
\n\n\r

<VirtualHost ip:8095>
ServerName lala.com
ProxyPass / http://host1.com
ProxyPassReverse....
</VirtualHost>

<VirtualHost ip:80>
Servername lala.com
redirect / https://lala.com (redirect to HTTPS)
</VirtualHost>

my module will find r->server->port = 80 even if the SSL Accelerator is connected on port 8095
It can happen too if i have the same servername in each VHOST.

My module is now checking conn->socket->port or something like that... i have no more problem

What i find buggy is the correct VHOST is used, if not, the connection should be a loop !
so i am in the correct VHOST and when my module check r->server->port, i find 80 !



Jeff Trawick wrote:
Estrade Matthieu <estrade-m@ifrance.com> writes:

  
I posted a mail about a problem with r->server->port few days ago,
I did a patch to correct this bug, but i am not sure it's a bug...

the problem was when UseCannonicalName is Off,
    

I don't think it is a bug.

What exactly does your module need to know?

  

--------------030503010500020301010601-- __________________________________________________ Modem offert : 150,92 euros rembours�s sur le Pack eXtense de Wanadoo ! Haut d�bit � partir de 30 euros/mois : http://www.ifrance.com/_reloc/w