You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rafał <ma...@wp.pl> on 2008/07/30 22:07:32 UTC

ap_server_conf without port

Hello.

I've found that ap_server_conf variable does not have port field set.
It is equal to '0'.

I'm using 'prefork' module.

Is it intentional? If no how can I fix get? (where to get the real port 
value of incoming connection?).
I need it for ap_matches_request_vhost - it returns 0 when it should 
return 1, becouse of port checking failure...

Best regards
  Rafał Malinowski

----------------------------------------------------
Dwa tysiące lat temu Chiński Cesarz Smok podbił połowę świata.
Teraz Wraca by dokończyć dzieło... Film pełen EFEKTÓW SPECJALNYCH.
MUMIA: GROBOWIEC CESARZA SMOKA - w kinach. 
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2FMumiaGrobowiec.html&sid=436



How to check if URL points on current server? [Was: Re: ap_server_conf without port]

Posted by Rafał <ma...@wp.pl>.
> ap_get_server_port?

Thanks... I've missed it some way.
It works but unfortunately it does not help me much...

The main problem is that I'm unable to check if some URL points to 
current server, so in my WebDAV copy/move patch i can distingush beetwen 
local and non local operations...

ap_matches_request_vhost does not work for this case, becouse in 
matches_aliases the host variable is "localhost.0.0.1" and 
s->server_hostname is "127.0.0.1".

Maybe is there an other easy way to check if it points to *this* server?

Best regards
  Rafał Malinowski

----------------------------------------------------
Jedziesz w góry lub nad morze? 
Skorzystaj z darmowego dostępu do Internetu - sprawdź wifi.wp.pl
Kliknij: http://klik.wp.pl/?adr=www.wifi.wp.pl&sid=438



Re: ap_server_conf without port

Posted by Ruediger Pluem <rp...@apache.org>.

On 07/30/2008 10:07 PM, Rafał wrote:
> Hello.
> 
> I've found that ap_server_conf variable does not have port field set.
> It is equal to '0'.
> 
> I'm using 'prefork' module.
> 
> Is it intentional? If no how can I fix get? (where to get the real port 
> value of incoming connection?).

ap_get_server_port?

Regards

Rüdiger