Setting document root with module

Hi,

I’m investigating the prospects of setting $document_root based of a
value sitting in a text file. Not believing that I could just have the
configuration file read from a .txt, my initial thought was to create a
module, calling the directive in nginx.conf and passing the path to the
txt file there, and using the module to set $document_root according to
the contents of the text file. Unsure how to accomplish this at the
moment. Anyone have any advice/solutions for this problem?

Thanks!
Jason

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219511,219511#msg-219511

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs