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
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
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
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.
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;
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,
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
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
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
.
Thank youfor your time.
Greetings
--
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
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.
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),
= 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
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
,
--
Christoph Gröver, gro...@sitepark.com
. 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
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
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
19 matches
Mail list logo