# Using ngx\_conf\_t

**URL:** <https://www.ruby-forum.com/t/using-ngx-conf-t/221176>\
**Category:** NGINX\
**Created:** [July 3, 2012, 8:00pm UTC](https://www.ruby-forum.com/t/using-ngx-conf-t/221176 "2012-07-03T20:00:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 3, 2012, 8:00pm UTC](https://www.ruby-forum.com/t/using-ngx-conf-t/221176/1 "2012-07-03T20:00:09Z")

</div>

Hello all,  
Is it possible to get ngx\_conf\_t in a handler? If it is, how to get it?

Thank you.  
M.

Posted at Nginx Forum:

> **[Using ngx\_conf\_t](https://forum.nginx.org/read.php?2,228251,228251#msg-228251)**
>
> Hello all, Is it possible to get ngx\_conf\_t in a handler? If it is, how to get it? Thank you. M.

---

<div class="post-metadata">

**Author:** ![munkhabi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/13edae/32.png) [@munkhabi](https://www.ruby-forum.com/u/munkhabi)\
**Post date:** [July 3, 2012, 8:33pm UTC](https://www.ruby-forum.com/t/using-ngx-conf-t/221176/2 "2012-07-03T20:33:29Z")

</div>

On 07/03/2012 10:59 AM, munkhabi wrote:

> Hello all,  
> Is it possible to get ngx\_conf\_t in a handler? If it is, how to get it?  
> ngx\_http\_get\_module\_(loc|srv|http)\_conf

---

<div class="post-metadata">

**Author:** ![munkhabi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/13edae/32.png) [@munkhabi](https://www.ruby-forum.com/u/munkhabi)\
**Post date:** [July 3, 2012, 8:44pm UTC](https://www.ruby-forum.com/t/using-ngx-conf-t/221176/3 "2012-07-03T20:44:00Z")

</div>

Hello!

On Tue, Jul 03, 2012 at 01:59:41PM -0400, munkhabi wrote:

> Hello all,  
> Is it possible to get ngx\_conf\_t in a handler? If it is, how to get it?

The ngx\_conf\_t is a type of a structure used for configuration  
parsing. It only exists during configuration parsing, and  
obviously you can’t access it after configuration parsing is  
complete.

Maxim D.
