Skip to main content

Posts

Showing posts from 2016

ColdFusion to Node.js Conversion : Setup Part 1

This multi-part post will be community comment driven, which basically means that in an effort to not spend too much time on details that might not matter to the viewers out there, I am only going to share the details which I think are important at the time of publishing the posts. If people (or bots) comment and want more details, I will add them to the original post. As always, constructive criticism is always welcome. Since I am currently using the CFWheels framework (which is inspired by Ruby on Rails or RoR), I chose to try out the Sails.js framework for Node.js (which is also similar to Rails). 1st thing I did was get Node and Apache working together by adding this to my Apache vhost(VirtualHost) block: ProxyRequests on ProxyPass / http://localhost:8124/ And adding this to my hosts file (/etc/hosts): 127.0.0.1 mynewapp.node www.mynewapp.node This allows me to setup an alias in my host file and reference the URL as you normally would without adding the portnumber o...

Bitnami WordPress htaccess Redirect for Author Pages

As their page notes, for security purposes, the htaccess configuration has been moved outside of the webroot and AllowOverride is set to "None" https://wiki.bitnami.com/Components/Apache/htaccess_configuration . In this instance I have an EC2 instance spun up from a BitNami (HVM) AMI. The default file to edit is /opt/bitnami/apps/wordpress/conf/htaccess.conf Make a backup of the file before you edit. Add this block anywhere in the file to redirect all author landing pages to the home page. <Directory /opt/bitnami/apps/wordpress/htdocs/> RedirectMatch 301 "^/author/.*" http://www.yourdomain.com/ </Directory> Customize to your liking if you would rather redirect to a different page. When you're done editing, run this to restart apache, then test your changes. sudo /opt/bitnami/ctlscript.sh restart apache /* Joey */