Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Christoph Gröver
Hello Sorin, Thank you very much. I finally found out the course of the strange results I am getting. I used the request_rec to get the conn_rec. In this connection record there's a field called base_server, which I used as the source for the server_hostname. request_rec *r; conn_rec *c; serv

Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Sorin Manolache
On 2013-09-24 13:04, Christoph Gröver wrote: Hello Sorin, I suppose you use the server field of the request_rec structure and not some stored server_rec that was passed to you in post_config or somewhere else. Definitely. I have adopted this from some other module and didn't know there was a

Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Christoph Gröver
Hello Sorin, > I suppose you use the server field of the request_rec structure and > not some stored server_rec that was passed to you in post_config or > somewhere else. Definitely. I have adopted this from some other module and didn't know there was another way to obtain a server_rec structur

Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Eric Covener
On Sep 24, 2013 5:40 AM, "Christoph Gröver" wrote: > > > Hello list, Hello Sorin, > > I tested several different Apaches (2.4.x and 2.2.x) and they never did > the wanted or expected. > > If I configure more than one VHost only the first one is returned by > the server->server_hostname structure.>

Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Sorin Manolache
On 2013-09-24 11:38, Christoph Gröver wrote: Hello list, Hello Sorin, I tested several different Apaches (2.4.x and 2.2.x) and they never did the wanted or expected. If I configure more than one VHost only the first one is returned by the server->server_hostname structure. The one of the secon

Re: How to determine the "right" vhost in name based vhosting

2013-09-24 Thread Christoph Gröver
Hello list, Hello Sorin, I tested several different Apaches (2.4.x and 2.2.x) and they never did the wanted or expected. If I configure more than one VHost only the first one is returned by the server->server_hostname structure. The one of the second vhost that is configured as a "ServerName" se