Palle Girgensohn <[EMAIL PROTECTED]> wrote:
>
>> So, something is wrong, since the spec says that calling
>>     ServletRequest.getServerName() is equal to the SERVER_NAME CGI variable
>> And
>>     ServletRequest.getServerPort() is equal to the SERVER_PORT CGI variable
>> 
> 
> As you see, this depends on configuration.

Yep... I was able to reproduce the same with the correct VirtualHost and
ServerAlias directive... But in the "stupid" (mine) way of doing things, the
problem remains.

>> At the end, what should I use? Wich one is correct? The CONFIGURED server
>> name and port or the one derived from the Host: ...... Header????
>> (Right now I'm using the second one, like Tomcat does)...
> 
> Stick with this, IMHO. The configured name is of less interest,
> right?

Yep... For now I'm forcing that getting the appropriate host name out of the
Apache request_rec structure and not doing how they do in mod_cgi...

    Pier

-- 
Pier P. Fumagalli  Apache Software Foundation  <mailto:[EMAIL PROTECTED]>
----------------------------------------------------------------------------
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur,
adipisci velit...                             (Cicero: "De Finibus" 1.10.32)


Reply via email to