Last night I took a crack at enabling SES on my app, and didn’t have much luck getting it to work. Reading the documentation, it seems that it should be quick and easy to get this up and running. I thought I would run through my steps, and see if anyone can point me in the right direction.
#Images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} .(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|
xml)$
RewriteRule ^(.*)$ - [NC,L]
I should note, you will need to remove the references to ‘aarongreenlee.com’ or replace with your domain. The second and third line simply remove the ‘www’ prefix.
So I’ve placed the following .htaccess file into the v01 directory of my app. v01 contains all of my handlers, includes, model folders, index.cfm, etc…
//.htaccess
RewriteEngine On
#Images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} .(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|
xml)$
RewriteRule ^(.*)$ - [NC,L]
I’ve put my .htaccess issue aside for now, as ultimately i’m deploying to a windows machine, which is using IIS7. I deployed the following web.config file to my test server and it’s tripping up on the rules part of the config. I tried removing the rules for SQL injection so that only the CB index.cfm rules applied and I get a 500.19 server error saying the config is invalid. Just wondering if anyone has been able to get the script running on IIS 7. This is the default script that came with the CB download extras folder.
You might want to look into Helicon it is a full mod rerwrite engine for IIS that uses the .htaccess file.
Also I am not sure why you are having issues, .htaccess file that ships with ColdBox will work fine if it is not then you have a configuration issue with your server and/or ColdBox.
You might want to look into Helicon it is a full mod rerwrite engine for IIS that uses the .htaccess file.
Also I am not sure why you are having issues, .htaccess file that ships with ColdBox will work fine if it is not then you have a configuration issue with your server and/or ColdBox.
You might want to look into Helicon it is a full mod rerwrite engine for IIS that uses the .htaccess file.
Also I am not sure why you are having issues, .htaccess file that ships with ColdBox will work fine if it is not then you have a configuration issue with your server and/or ColdBox.