[ ColdBox SEEK 4.3.0+188] Easy way to exclude a directory from ColdBox?

24 views
Skip to first unread message

West

unread,
Jul 22, 2017, 2:38:06 PM7/22/17
to ColdBox Platform
Is there a way to exlcude a directory from being processed by ColdBox?

I have a directory called "blog" in my wwwroot and I'd like to keep it there, but it exclude it from coldbox altogether.

Is there a way to do this within the context of Coldbox?

Thanks in advance!

Ancient Programmer

unread,
Jul 22, 2017, 3:25:43 PM7/22/17
to ColdBox Platform
What's inside the /blog? As long as there is no code or some ColdBox convention inside /blog, ColdBox won't process anything.

West

unread,
Jul 22, 2017, 4:40:57 PM7/22/17
to ColdBox Platform
Wordpress files basically.   There was a web.config in there that was causing some conflict with the web.config in the root of my site which is a coldbox app.   I was able to add some rewrite rules inside the wordpress web.config file that fixed it.  I'm running WordPress on Windows (another conversation), but that's why there is a web.config

br...@bradwood.com

unread,
Jul 22, 2017, 11:11:34 PM7/22/17
to col...@googlegroups.com
If you're using URL rewrites, make sure they don't kick in for that folder.  If that folder has CFML code and it's own Application.cfc then you should be fine.  If that folder has CFML code and is hitting the root Application.cfc, then put an if in your onRequestStart that skips the processColdBoxRequest() call as well.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/f892959f-6060-4e5a-82ea-73aa7dbf7757%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

West

unread,
Jul 24, 2017, 2:25:51 AM7/24/17
to ColdBox Platform
Thanks Brad, that's super helpful intel.  It never dawned on me that writing a small snippet to skip the processColdBoxRequest() method call.
Reply all
Reply to author
Forward
0 new messages