- Use nginx
- Use a ruby gem for ftp server
- Use Rails
*.cdn.my-domain.net CNAME cdn.platform.my-domain.net
For simple CDN
Just configure for all request go to base of cdn ftp.
For custom CDN
Use *.assets.cdn.my-domain.net
and link it to assets/
folder.