Re: AcceptPathInfo configured, finding out the real URL that is used

2014-11-21 Thread Christoph Gröver
will be able construct a virtual URL as if the user directly requested the real file. Probably this is the only way to find out what PHP will be doing later with the request. Greetings -- Christoph Gröver

AcceptPathInfo configured, finding out the real URL that is used

2014-11-13 Thread Christoph Gröver
URL that the PHP interpreter will be using at last. My module runs in the auth_checker phase and in the fixup phase. I have not found a way yet to determine the really delivered URL instead of the user given one. Thank you for your time, Greetings -- Christoph Gröver, gro...@sitepark.com

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

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 structure.

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;

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

2013-09-23 Thread Christoph Gröver
Hello Sorin, I've tested this setup in 2.4.6 and r-server-server_hostname contains what you want. Thanks for your answer. Well, at least with Apache 2.2.15 I recognize a different behaviour. The server-server_hostname points to the first vhost that is configured for an IP:Port combination,

How to determine the right vhost in name based vhosting

2013-09-19 Thread Christoph Gröver
Hello, We usually use name based virtualhosts with something like the following configuration: NameVirtualHost IP:80 VirtualHost IP:80 ServerName main.domain.tld ServerAlias alias.domain.tld .. /VirtualHost VirtualHost IP:80 ServerName www.domain.tld ServerAlias alt.domain.tld

Re: Is UseCanonicalName in effect? How to find out

2013-08-22 Thread Christoph Gröver
of the core_module like this: core_dir_config *conf = (core_dir_config *) ap_get_core_module_config(r-per_dir_config); Works fine. If there's a more elegant way e.g. a function I'd still like to hear it. Greetings -- Christoph Gröver

Is UseCanonicalName in effect? How to find out

2013-08-20 Thread Christoph Gröver
Dear list, Is there a preferred way to find out (in a module) whether UseCanonicalName ist not off? I had a look at the structures (server_rec ..) in httpd.h, but only found the core_dir_config structure. It is supposed to be a private configuration structure for the core_dir_module? Probably

Re: Authentication/Authorization module vs. Basic Authentication

2013-06-25 Thread Christoph Gröver
. Thank youfor your time. Greetings -- Christoph Gröver

Re: Authentication/Authorization module vs. Basic Authentication

2013-06-17 Thread Christoph Gröver
Hello Nick, You'd want the err_headers_out to set that for an error return. OK. Good point. Changed that. Instead of sending back to the client a 302 or a 301 the next thing that happens the apache sends back a 401. Have you traced and/or stepped through execution of your own code? I

Authentication/Authorization module vs. Basic Authentication

2013-05-30 Thread Christoph Gröver
Dear mailing list, I have written a rather complex module which deals with authentication and authorization among other things. It checks for example for the existence of a valid kerberos ticket, it checks a mysql database for information which user is allowed to see which URL of a website.

Re: Accessing environment variables set by other modules

2012-10-02 Thread Christoph Gröver
Hello Jeff, Sometimes envvars are set directly into subprocess_env (e.g., handling of SetEnv/SetEnvIf). IOW, subprocess_env is the primary representation. But the REMOTE_USER and HTTP request header variables are a representation of information stored elsewhere (r-user, r-headers_in),

Accessing environment variables set by other modules

2012-10-01 Thread Christoph Gröver
= get_env(REMOTE_USER); I also changed the hook that I have my code registered in, so that it runs later than the mod_auth_kerb. But still REMOTE_USER appears to be always empty. What am I doing wrong? Someone point me in the right direction? Thank you for your time. Greetings -- Christoph Gröver

Re: Accessing environment variables set by other modules

2012-10-01 Thread Christoph Gröver
Hello Daniel, Just a quick suggestion; Have you tried r-user ? Tak! Really a good suggestion. r-user is set if it's run in the fixup hook. I still would like to know if it's possible to access variables set by other modules, but for the current development it'll be sufficient. With kind

Question about malloc / realloc in module

2011-09-14 Thread Christoph Gröver
, -- Christoph Gröver, gro...@sitepark.com

Re: Question about malloc / realloc in module

2011-09-14 Thread Christoph Gröver
. See mod_proxy_html for an example. Thanks for this suggestion. If I do not find out what is causing the apache childs to grow in memory usage, I will try this to be sure it's not my memory allocations. Greetings. -- Christoph Gröver, gro...@sitepark.com

Re: Preventing the use of chunked TF encoding while content-filtering

2009-11-15 Thread Christoph Gröver
that collecting the chunks and transfering them in one shot will solve my problem? Do you know for sure that by this I will be able to circumvent the use of chunked transfer encoding? I will program it myself, but I wanted to be sure that this will help before I start implementing it. Bye -- Christoph

Preventing the use of chunked TF encoding while content-filtering

2009-11-09 Thread Christoph Gröver
after some talking: Is there a way to get rid of CTFE ? Perhaps if we collect all the chunks, put it in one chunk and set a ContentLength-Header ? Or is there another trick to do this? Greetings from Münster, looking forward to your ideas. -- Christoph Gröver, gro...@sitepark.com Sitepark GmbH