Skip to content

Instantly share code, notes, and snippets.

@fudini
Last active December 17, 2015 18:39
Show Gist options
  • Save fudini/5654481 to your computer and use it in GitHub Desktop.
Save fudini/5654481 to your computer and use it in GitHub Desktop.
- Create EC2 instance - you should have your file.pem public key file saved somewhere.
- Assign Elastic IP.
- Configure security groups for ports 80, 20, pasv ftp range and if you want to enable ping: custom IMCP rule 'echo request'
ssh -i file.pem ubuntu@YOUR_IP
- INSTALL VSFTPD
sudo apt-get install vsftpd
to restart:
sudo /etc/init.d/vsftpd restart
in /etc/vsftpd.conf add or edit some stuff:
- INSTALL NGINX
sudo apt-get install nginx
- the web root folder is /usr/share/nginx/www
follow this instructions:
http://www.noob2geek.com/linux/setup-vsftpd-debian-ubuntu/
then add some more stuff into your vsftpd.conf:
pasv_enable=YES
pasv_min_port=11000
pasv_max_port=11010
and don't forget to open this ports in your aws security groups
- TO ENABLE GZIP ON NGINX:
gzip_http_version 1.1;
in the nginx config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment