Welcome! Log In Create A New Profile

Advanced

Setting document root with module

December 02, 2011 05:05PM
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
Subject Author Posted

Setting document root with module

jkleban December 02, 2011 05:05PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready