You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Christoph Gröver <gr...@sitepark.com> on 2013/08/20 10:58:39 UTC

Is "UseCanonicalName" in effect? How to find out

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 I just have to import this and use the values in this
structure? 

Thank you for your time.

Greetings

-- 
Sitepark Gesellschaft für Informationsmanagement mbH
Rothenburg 14-16, 48143 Münster

Telefon: +49 251 482655-0, Telefax: +49 251 482655-55
http://www.sitepark.com
http://www.facebook.com/sitepark

Geschäftsführer: Thorsten Liebold
Amtsgericht Münster, HRB 5017

Re: Is "UseCanonicalName" in effect? How to find out

Posted by Christoph Gröver <gr...@sitepark.com>.
Hello list,

> Probably I just have to import this and use the values in this
> structure? 

Well, no answer yet. I found an example code where someone just uses the
core_dir_config structure by including the http_core.h header file and
reading the value use_canonical after getting the config 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