Tuesday, July 10, 2012

CFWheels 1.1.8 Url Rewriting

CFWheels 1.1.8, IIS 7.5 on Win 7x64, Apache Tomcat running Railo 3.3

It seems url rewriting has been a tough nut to crack... and of course, now that I've figured it out... not so much :-)

- Add rewrite module to IIS 7.5 (Reboot your server.. I couldn't get the Rewrite module to show in the IIS control panel.)
- Enable rewriting by un-commenting out lines in your web.config that comes with cfwheels (This makes the rule appear in the IIS rewrite panel as a rule btw)

-  Review guide about rewrite configuration in IIS Console directly (nice for testing & understanding what's going on)
- Enable logging for starters (helpful) Hunt around in here for the log: C:\inetpub\logs\LogFiles\
- In tomcat's \tomcat\conf\web.xml 

Around line 429 "<!-- The mapping for the Railo servlet -->"   make sure this is NOT commented out:

<servlet-mapping>
    <servlet-name>GlobalCFMLServlet</servlet-name>
    <url-pattern>/rewrite.cfm/*</url-pattern>
</servlet-mapping>

Friday, July 6, 2012

Railo 4.0

Is it christmas? Is it my birthday? Nope... Railo 4.0 is in Beta, and the long list of new tweaks and features they've added are super exciting...and they've 'fixed' some things I had just learned to work around (such as the UPPERCASING of struct keys when the dot notation was used)

The most important of which, for me is the long awaited fix for URL Rewriting!!! I've known for a while now that the cgi.path_info param needed for url rewriting to work got lost between IIS and Railos connector. Railo 4 Beta Release

Read all about the new features: Railo 4 Beta Release Features

OWASP

OWASP Intro to XSS Attacks: