I had a battle with this, I've googled and seen more than 100 results and have not found the solution.
I installed many times "Coldfusion", in different ways, in different distributions of linux and can not find the solution to the much hated "flex2gateway", tryig so many fixes but none worked for me, I keep getting the 404.
System details: Debian Wheezy (7.0), Coldfusion 10, Apache 2.2.22
I hope someone can help me.