Blog

Brad Wood

November 01, 2012

Spread the word


Share your thoughts

 

One of the first things you learn with ColdBox is how to add ?fwreinit=1 to the end of your URL to force a reload of the entire application.  This is required to pick up new settings, etc.  Many of you probably leave the reinit password at its default of "1".  While that's fine for your development and testing servers, it's not recommended  on production.  Reinitializing your application can potentially be an intensive operation, and you don't want someone out there having the ability to screw around with your app.  
 
Adding a little piece of mind is easy.  All you need to do is add a "ReinitPassword" setting in your config.
 
coldbox = {
    reinitPassword = 'passw0rd'
};
 
With that in place, you can now reinit the app like so:
 
http://www.yoursite.com?fwreinit=passw0rd
 
Remember, for the new password to take affect, you have to reinit the site one last time with the old password (which is cached in memory).
 
There you go!  You can sleep a little better at night knowing random people can't reinitialize your servers.
 
 
P.S. Do you only want the password on your production servers?  Easy-- just use the environment control I talked about last week.  Set up the production password in your main configure() method.  Then in your development or stage override methods, set coldbox.ReinitPassword back to an empty string.
 
 

Add Your Comment

Recent Entries

Ortus June 2024 Newsletter!

Ortus June 2024 Newsletter!

Welcome to the latest edition of the Ortus Newsletter! This month, we're excited to bring you highlights from our sessions at CFCamp and Open South Code, as well as a sneak peek into our upcoming events. Discover the latest developments in BoxLang, our dynamic new JVM language, and catch up on all the insightful presentations by our expert team. Let's dive in!

Maria Jose Herrera
Maria Jose Herrera
June 28, 2024
BoxLang June 2024 Newsletter!

BoxLang June 2024 Newsletter!

We're thrilled to bring you the latest updates and exciting developments from the world of BoxLang. This month, we're diving into the newest beta release, introducing a new podcast series, showcasing innovative integrations, and sharing insights from recent events. Whether you're a seasoned developer or just getting started, there's something here for everyone to explore and enjoy.

Maria Jose Herrera
Maria Jose Herrera
June 28, 2024
BoxLang 1.0.0 Beta 3 Launched

BoxLang 1.0.0 Beta 3 Launched

We are thrilled to announce the release of BoxLang 1.0.0-Beta 3! This latest beta version is packed with exciting new features and essential bug fixes, including robust encryption functionality, enhanced Java interoperability, and more efficient event handling. Key highlights include the introduction of query caching capabilities, seamless coercion of Java Single Abstract Method (SAM) interfaces from BoxLang functions, and support for virtual thread executors. So, let’s dive into the details of what’s new in BoxLang 1.0.0-Beta 3 and how you can start leveraging these updates today!

Luis Majano
Luis Majano
June 28, 2024