My name is Vasyl Khrystiuk‎ > ‎process‎ > ‎main‎ > ‎

1. Amazon. Instalation.

Ok. We have  Server at amazon. (If not - go here(detailed russian manual))
We connect to it and even make apt-get update (I like centos more but i select ubuntu becose it is popular system and more tech solution are done in network)
1) Install JDK
 sudo apt-get install openjdk-6-jdk

So. First lets install jetty. Note about jetty version and java class version: Jetty6 support only 1.5 java MAXIMUM.
apt-get install jetty
If you need jetty8(or other version -  download debian instalation package:
sudo wget
install it:
sudo dpkg -i jetty-deb-8.1.13.v20130916.deb
And thats all.

In case of normal instalation correct commands will be add in network sturtup.
Now we have jetty.
Lets make it runnable and accessible - edit /etc/default/jetty and change 
    NO_START to be 0 (or comment it out).

Lets start it:
 service jetty start
Do not forget to add a rule to amazone firewall. (For 8080 port, for conficuration time? 80 port for HTTP, and echo request).
Now need to make jetty runnable on 80 port. Its not simple because linux restriction for 80 port, so we just create port forwarding rule(more here):
/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables-save > ~/firewall.conf
vim /etc/network/if-up.d/iptables
where write this:
iptables-restore < /home/ubuntu/firewall.conf
and make this runnable:
chmod +x /etc/network/if-up.d/iptables

Restart instance and check 80 port.
Ok. Its fine. Lets hide 8080 out of firewall.

For finding standart jetty folders and config files - see here: - it is applicable just change "jetty6" to "jetty"

Jetty8 on ubuntu has little bit diref location:
Its webapps folder are at:
Anyway you can find them with find:
find / -type d -name 'webapps'

Another good tutorila is:

Also most possible you need this:
sudo apt-get install libjetty-extra

Next step - protect from ddos.
There are two ways: protect on iptables level and protect on webservice level.


Because Amazon not provide adequate ddos protection.