This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » [SOLVED] Debug mode in production for certain IPs
[SOLVED] Debug mode in production for certain IPs [message #94551] Tue, 02 March 2010 11:10
Mr_Chon  is currently offline Mr_Chon
Messages: 13
Registered: November 2008
Location: France
Junior Member
Hi,

On my production server I'd like to activate the debug mode with the debug bar for a certain range of local IPs only. For the rest of the world it'll remain normal, debug-less and fast.

I was wondering if anyone else had done this before or how I could possibly implement it in my current sf1.1 project (soon to be sf1.2).


Edit : Nevermind, I didn't know I could access sfConfig already in the main php file. For those who care, I just added a check on the IP address in my /web/back.php file and did a sfConfig::set('sf_web_debug', true); to activate the bar.

[Updated on: Tue, 02 March 2010 14:22]

Previous Topic:How to set secure flag for SSL call
Next Topic:security filter
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software