in HowTo

Sfruttare http2 per aumentare le performance del webserver

Ci siamo appassionati ad http2 ispirati da questo <a href="https://kinsta task manager app.com/learn/what-is-http2/”>articolo di Kinsta, grazie ad una segnalazione di Smashing Magazine, abbiamo deciso di mettere alla prova le potenzialità di questo nuovo protocollo (nuovo si fa per dire), configurare un server ex-novo e di fare un po’ di benchmark per vedere se ne vale la pena. E ne vale la pena.

Ma andiamo per ordine e cominciamo dall’inizio.

Installazione di Ubuntu 16.04 LTS

Siamo andati su digitalocean.com e abbiamo creato in fretta e furia una droplet da $5 con installato Ubuntu 16.04 LTS. Una volta collegati via ssh abbiamo installato apache2 (precisamente la versione 2.4.18) e purtroppo ci siamo resi conto che il modulo per http2 non era presente.

E’ cominciata così la ricerca di una soluzione che si è conclusa con la seguente procedura:

$ sudo -i
$ apt-get install python-software-properties
$ add-apt-repository -y ppa:ondrej/apache2
$ apt-key update
$ apt-get update

Questa sequenza consente di utilizzare l’ultimo repository di apache2 al sistema e di aggiornare la lista dei pacchetti (moduli inclusi) disponibili.

$ apt-get --only-upgrade install apache2 -y
$ a2enmod http2

Così facendo il mod è caricato e si può aggiungere la relativa configurazione al virtual host relativo:

# Estratto di una configurazione per un vhost in https
<VirtualHost *:443>
 # per abilitare h2 sul server
 Protocols h2 http/1.1

 # il resto della configurazione va qui
 # ...
</VirtualHost>

Una piccola (?!) annotazione. http2 è un protocollo nato per funzionare anche senza https. L’implementazione dei browser invece vuole che quasi tutti i browser riconoscano http2 se e solo se attraverso una connessione https. Ma per questo abbiamo bisogno di configurare il nostro virtual host perché risponda su https (allo scopo abbiamo utilizzato “let’s encrypt” per avere un certificato a costo zero!).

Funziona?

Una volta configurato tutto come testare se il nostro server risponde effettivamente in questa modalità? Due opzioni: una facile facile ed una complicata complicata.

Subito la prima, ovvero è sufficiente scaricare l’estensione di Chrome “Spdy Indicator” per avere una bella iconcina in alto a destra che ci aiuta a capire con che protocollo sta lavorando il sito che stiamo navigando nel tab.

La seconda consiste nell’utilizzare curl da riga di comando. Ma qui nascono i problemi (o almeno lo sono stati per noi…). Curl per come viene distribuito su ubunto non contiene il modulo http2. Benone! Allora che fare? Semplice ricompilare Curl con il supporto ad http2 ed il gioco è fatto. Per percorrere questa strada basta leggere quest’articolo (veramente fatto bene) e seguire le istruzioni. Noi l’abbiamo fatto con un accorgimento ovvero scaricare la versione 7.48. Tutto qui.

Dopo un p0′ di compilazioni e download vari (compresa soprattutto installazione di nghttp2) avrete un curl capace di intendere e volere il nuovo protocollo.

Performance di http2

Ok funziona. Il webserver gira a dovere ed il nostro indicatore SPDY ci dice che stiamo lavorando in http2. Bene, ma quali sono le performance?

Le performance sono visibili a vista d’occhio!

 

Riferimenti utili
  • https://kinsta.com/learn/what-is-http2/
  • https://www.smashingmagazine.com/
  • http://pixelinc.co/ubuntu-14-04-3-apache-http-2-web-server-setup/
  • https://github.com/rauchg/chrome-spdy-indicator
  • https://serversforhackers.com/video/curl-with-http2-support
  • https://httpd.apache.org/download.cgi#apache24
  • https://letsencrypt.org/getting-started/

buy abilify buy accutane buy aceon buy aciphex buy actos buy adalat buy aggrenox buy albenza buy aldactone buy alesse buy allegra buy alprostadil buy altace buy amalaki buy amaryl buy amoxil buy anafranil buy antabuse buy arava buy arcoxia buy aricept buy arjuna buy artane buy asacol buy astelin buy atarax buy augmentin buy avalide buy avapro buy avelox buy avodart buy ayurslim buy azulfidine buy bactrim buy bactroban buy benicar buy betagan buy betnovate buy biaxin buy bimatoprost buy botox buy brahmi buy buspar buy bystolic buy calan buy cardura buy casodex buy cefixime buy ceftin buy celebrex buy celexa buy cenforce buy chloromycetin buy cialis buy cipro buy clarinex buy claritin buy cleocin buy clomid buy combivir buy copegus buy cordarone buy coreg buy coumadin buy cozaar buy crestor buy cymbalta buy cytoxan buy deltasone buy depakote buy desyrel buy detrol buy diabecon buy diamox buy diflucan buy diovan buy duphaston buy duricef buy effexor buy elavil buy eldepryl buy epivir buy eulexin buy evecare buy evista buy exelon buy famvir buy feldene buy flagyl buy fliban buy flomax buy flonase buy floxin buy geodon buy glucophage buy glucotrol buy glucovance buy grifulvin buy guduchi buy haridra buy himplasia buy hytrin buy hyzaar buy ilosone buy imdur buy imitrex buy imodium buy inderal buy indocin buy janya buy kapikachhu buy karela buy keflex buy kemadrin buy lamictal buy lanoxin buy lasix buy lasuna buy levaquin buy levitra buy lexapro buy lioresal buy lipitor buy lopid buy lopressor buy lozol buy luvox buy manjishtha buy megaslim buy menosan buy meshashringi buy mestinon buy metaglip buy micardis buy micronase buy microzide buy minipress buy mobic buy moduretic buy motilium buy motrin buy myambutol buy mysoline buy naprosyn buy neem buy neurontin buy nexium buy nizoral buy nolvadex buy noroxin buy norvasc buy omnicef buy oxytrol buy pamelor buy paracetamol buy parlodel buy paxil buy penisole buy periactin buy persantine buy plavix buy ponstel buy prandin buy precose buy prednisone buy prevacid buy priligy buy prilosec buy prograf buy propecia buy proscar buy protonix buy provestra buy punarnava buy rebetol buy reglan buy requip buy retrovir buy risperdal buy rulide buy serevent buy seroquel buy shallaki buy shatavari buy shigru buy sinemet buy sinequan buy singulair buy speman buy sporanox buy starlix buy strattera buy stromectol buy sumycin buy suprax buy sustiva buy symmetrel buy tegretol buy tenoretic buy terramycin buy tofranil buy topamax buy trandate buy trental buy tricor buy trikatu buy trileptal buy triphala buy tulasi buy urispas buy uroxatral buy valtrex buy vantin buy vasaka buy vasotec buy ventolin buy vermox buy viagra buy vigorelle buy vigrx buy voltaren buy vrikshamla buy vytorin buy wondersleep buy xenical buy zanaflex buy zantac buy zebeta buy zestoretic buy zetia buy ziac buy zithromax buy zocor buy zofran buy zoloft buy zovirax buy zyloprim buy zyrtec viagra

cheap cialis cialis or viagra generic viagra viagra patent expiration viagra coupons cialis patent expiration 2017 amoxicillin for cats cialis daily viagra savings offer what does viagra do augmentin 875-125 cialis patent expiration cialis canada amox amoxicillin clavulanate amoxil dosage cialis patent expiration date extended over the counter viagra what is amoxicillin cialis coupons printable how to take cialis cialis copay card does the government fund viagra cialis dosage recommendations canada cialis cialis coupon cialis online online cialis cialis alternative trial viagra sample generic cialis when will cialis go generic mexican walking fish cialis canadian pharmacy price cialis where to buy viagra axolotls side effects of viagra viagra single packs how much does viagra cost cialis otc viagra price levitra vs viagra how does viagra work amoxicillin side effects in men cialis coupons from manufacturer cialis pricing amoxicillin 500mg viagra viagra for sale inexpensive viagra pills does viagra work amoxicillin 500 mg for sinus infection viagra without prescription amoxil viagra cialis viagra on line viagra without a doctor prescription female viagra cialis generic tadalafil cialis voucher trimox amox-clav 875-125 mg amox-clav 875-125 viagra coupons 75 off cialis on line viagra costs viagra ingredients amoxicillin rash viagra coupons from pfizer axolot discount viagra cialis coupon 20 mg cialis testimonials amoxicillin 875 mg buy cialis online amoxicillin 500 mg and alcohol cialis for men viagra dose cialis sample viagra vs cialis cvs pharmacy viagra coupons cialis samples viagra canada wholesale cialis amoxicillin uti pfizer viagra coupons daily cialis cialis for sale stendra vs viagra amox-clav 875-125 mg tablet utilisation viagra cialis without a doctor’s prescription natural viagra alternatives that work discount cialis cialis vs viagra cialis 20mg amoxicillin/clavulanic acid viagra porn is viagra funded by government generic viagra 100mg viagra online generic for cialis canadian viagra what is cialis viagra activate viagra government funded generic for viagra augmentin drug class order online viagra cialis dosage cialis trial viagra samples moxil viagra cost cheap viagra amoxil 500 mg side effects of cialis amox/k clav 875-125 is viagra covered by insurance is viagra federally funded cialis website amoxacilin side effects of amoxicillin 500 mg otc viagra online viagra cialis 5mg sex viagra for women healthy man viagra cialis from canada cialis coupons 2017 amoxicillin 500mg capsules side effects of amoxicillin cialis dosage strengths cialis 30 day trial coupon viagra pill revatio vs viagra viagra girls cialis 5mg daily amoxicillin and clavulanate potassium 875 125 is viagra government funded cialis coupon print buy cialis viagra single packs cost viagra 100mg tablets retail price cialis 10 mg viagra government funding cialis tadalafil erectile dysfunction cialis viagra sex amovil amoxicillin viagra 100mg price walmart amoxicillin side effects cialis pills for sale cialis cost cialis reviews amoxicillin trihydrate 500mg canadian cialis viagra substitute viagra best price amoxidal buy viagra online women viagra what is amoxicillin used for viagra side effects viagra alternatives cialis 5 mg axolotyl cialis price buy viagra cialis generic availability how does cialis work viagra without a doctor prescription usa viagra from amazon cialis coupons cialis 30 day sample amoxi viagra pharmacy viagra coupon viagra dosage cialis pills cialis lowest cialis prices viagra vs cialis cialis effects is viagra government funded in america cialis for daily use cost of viagra sophia viagra canada viagra cialis for women viagra generic free cialis amoxcillin amoxicillin dosage cyalis amoxillin tamoxifen generic cialis tadalafil cealis what is anoxia cialis prices dosage of amoxicillin amoxicilina cialis professional viagra on line no prec viagra from canada female viagra pills what is viagra cilias amox clav 875 amoxicillin medscape axlotl amoxicillin uses xolotl herbal viagra mexican salamander amoxicillin dosing cialis 20mg directions sildenafil vs viagra non prescribed viagra cialis cheap amoxicillin side effects in women cost of cialis amoxicillin 250mg cialis free trial cialis pharmacy prices walgreens viagra substitute amoxicilin anadrol axolotl cialis discount viagra for women cialis side effects cialis vs viagra cialis generic cialas amox clav 875-125 cialis for bph side effect of amoxicillin amoxicillin 500 cialis medication pfizer viagra amoxicillian liquid cialis cialis savings card viagra pills for sale viamedic cialis 200 cialis coupon how long does viagra last amoxicillan cialis 20 mg best price viagra viagra prices cialis samples overnight how much does cialis cost cialis or viagra viagra pills amoxicillin tablets axoltl augmentin 500 amoxycillin amoxicillin 500 mg amoxin generic viagra available in usa viagra vs cialis vs levitra augmentin dosage free viagra axoloti natural viagra generic cialis at walmart viagra prices without insurance

Noi

cipro antibiotic azithromycin cialis pills what does viagra do propecia lexapro medication is tamoxifen chemotherapy ciprofloxacin drug class azithromycin without a doctor’s prescription what is cipro usually prescribed for viagra en ligne livraison 24h azithromycin class cialis price generic lexapro cialis coupons what does ciprofloxacin treat viagra samples escitalopram nebenwirkungen is ciprofloxacin a penicillin erectile dysfunction cialis tamoxifen lawsuits cialis from canada ciprofloxacin hydrochloride cipro 500 levitra 20 mg precio farmacia levitra vs viagra lexapro side effects in men side effects of viagra cipro lexapro benefits for women lexapro 20mg lexapro vs wellbutrin cialis website cialis patent expiration date extended viagra on line pfizer viagra viagra medicine lexapro withdrawal symptoms viagra for women lexapro dosage acyclovir dosage for cold sores viagra vs cialis vs levitra cipro and tendonitis buy cialis generic levitra when will cialis go generic generic cialis ciprofloxacin 500mg cialis 20 mg lexapro generic cialis without a doctor’s prescription ciprofloxacin hcl 500 mg side effects ciprofloxacin dose how to use viagra ciprofloxacin 500 mg for urinary tract infection cialis voucher what does finasteride do lexapro and weight gain in women ciprofloxacin eye drops cialis professional viagra sans ordonnance buying viagra cialis savings card ciprofloxacin 500 zithromax z-pak viagra pills cialis sample finasteride 5mg side effects mayo clinic how long for lexapro to work acyclovir 800 mg vardenafil 20mg post finasteride syndrome lowest cialis prices what is ciprofloxacin used for cialis on line cost of cialis cialis ciprofloxacin class tamoxifen cost cialis cost zithromax levitra coupon 200 cialis coupon finasteride 5 mg cialis 10 mg finasteride medication cialis or viagra viagra substitute azithromycin cost viamedic cialis cialis coupons from manufacturer cialis cheap azithromycin 500 ciprofloxacin 500mg antibiotics cialis 20mg zithromax antibiotic zovirax cream viagra cost viagra nebenwirkungen viagra 100mg tablets retail price generic for lexapro tamoxifen langzeitfolgen viagra tablet herbal viagra utilisation viagra ciprofloxacin 500 mg what is acyclovir used for acyclovir 800 mg 5 times a day zovirax azithromycin three times a week cialis free trial buy cialis online cipro antibiotics azithromycin uses cialis generic availability finasteride 5mg side effects how to wean off lexapro without withdrawals cialis pills for sale zovirax ointment tamoxifen side effects viagra activate lexapro bula escitalopram effets secondaires cialis 5mg azithromycin 250mg escitalopram side effects cost of viagra wellbutrin and lexapro cialis 30 day trial coupon lexapro vs zoloft cialis otc ciprofloxacin 500 mg tabletten what works better than viagra azithromycin 250 mg treatment finasteride and enlarged prostate generic viagra tamoxifen bijwerkingen discount cialis levitra vs viagra for hardness cialis for women lexapro side effects men levitra coupons cialis effects side effects of lexapro in women finasteride permanent side effects cialis copay card viagra 100 lexapro and weight gain escitalopram 10 mg para que sirve viagra generic cialis for sale azithromycin tablet cipro drug class azithromycine 250 mg how much does cialis cost ciprofloxacin side effects after age 60 side effects of azithromycin viagra alternatives ciprofloxacin ophthalmic solution cipro for uti how does acyclovir work azithromycin dosage pfizer viagra coupons from pfizer lexapro dosing azithromycin 250mg tablets 6 pack ciprofloxacin dosage viagra pillen kruidvat levitra bayer 20mg meilleur prix wholesale cialis acyclovir cialis for men first few days on lexapro online viagra cialis vs viagra finasteride hair loss levitra generic viagra sex tamoxifen citrate cyalis acyclovir for cold sores over the counter viagra what is escitalopram stopping lexapro cialis coupon 20 mg finasteride for women cialis for daily use canada cialis is azithromycin viagra without a doctor prescription tamoxifen and bone pain acyclovir dosage cialis medication acyclovir ointment viagra tesco viagra vs cialis levitra online what is cipro used for how does lexapro work what is ciprofloxacin prescribed for cialis samples overnight viagra alternative azithromycin pediatric dosing tamoxifen side effects in women cialis samples ciprofloxacin drops azithromycin for strep throat viagra uk side effects of finasteride 5mg what is viagra what is acyclovir for ciprofloxacin 250 mg cialis reviews finasteride vs dutasteride lexapro dosages lexapro and weight loss side effects of lexapro acyclovir for shingles is azithromycin penicillin cealis cialis daily sex viagra for women azithromycin tablets acyclovir 800 mg for shingles levitra without a doctor prescription withdrawal from lexapro cialis 30 day sample cialas cialis coupon print acyclovir 800mg cialis trial does lexapro cause weight gain antibiotic ciprofloxacin ciprofloxacin hcl azithromycine eg 500 mg bijsluiter finasteride dosage viagra coupon canada viagra lexapro and wellbutrin combination therapy women viagra levitra rezeptfrei deutschland what is acyclovir azithromycin liquid viagra soft where to buy viagra finasteride effets secondaires ciprofloxacin uses finasteride daily cialis what infections does ciprofloxacin treat generic for cialis azithromycin for pneumonia lexapro overdose acyclovir cream levitra 20 mg cost walmart tamoxifen side effects in women over 55 what does azithromycin treat viagra vs cialis vs levitra cialis canadian pharmacy viagra kaufen buy levitra online cialis 5mg daily viagra for men nolvadex ciprofloxacin bnf side effects of ciprofloxacin azithromycin eye drops azithromycin vs erythromycin lexapro reviews ciprofloxacin side effects side effects of acyclovir lexapro generic name zoloft vs lexapro revatio vs viagra acyclovir medication tamoxifen canadian cialis what is azithromycin how to get off lexapro viagra bestellen levitra dosage lexapro weight gain cheap levitra viagra on line no prec ciprofloxacin 500mg tablets azithromycin 250 mg what is tamoxifen cialis prices natural viagra cipro dosage tamoxifen interaction side effects of azithromycin 250 mg lexapro vs celexa cipro side effects in elderly azithromycine viagra for sale uk how to wean off lexapro cialis testimonials lexapro side effects in women cialis dosage strengths viagra cialis zovirax pills escitalopram 10mg viagra for sale viagra canada what is finasteride ciprofloxacin nebenwirkungen ciprofloxacin for dogs tamoxifen and foods to avoid acyclovir vs valacyclovir how to take cialis what bacteria does ciprofloxacin kill viagra price viagra from canada cialis patent expiration escitalopram 10 mg propecia side effects azithromycin medscape buy viagra online azithromycin 500 mg sophia viagra celexa vs lexapro azithromycin 5 day dose pack online cialis order viagra lexapro side effects finasteride 1mg viagra costs cialis 5 mg acyclovir 400mg viagra single packs equipe argentine viagra cialis pharmacy prices ciprofloxacin hydrochloride ophthalmic cialis alternative lexapro for anxiety tamoxifen nebenwirkungen cialis tadalafil side effects of cialis levitra 20mg viagra 50mg generic cialis tadalafil finasteride for hair loss what is cipro what is azithromycin used for azithromycin 250 lexapro 5mg how does viagra work viagra prices finasteride results viagra dosage viagra wikipedia zithromax 500 mg viagra wiki finasteride reviews generic viagra 100mg cialis canada levitra finasteride 5 mg tab cialis coupons 2017 cialis coupon viagra side effects ciprofloxacin coverage thuoc azithromycin levitra prices finasteride side effects acyclovir dosing azithromycin 500mg azithromycin coverage viagra pill levitra 20 mg ciprofloxacin spc viagra coupons what is ciprofloxacin cilias what is lexapro lexapro withdrawal free viagra levitra 20 mg von bayer cialis generic side effects of lexapro 10 mg price cialis cipro uses azithromycin and alcohol viagra online ciprofloxacin 500mg antibiotics side effects discount viagra what is cialis viagra ohne rezept aus deutschland azithromycin side effects azithromycin z pak cialis online finasteride side effects in men viagra 100mg how does cialis work finasteride 5mg tab acyclovir 200mg ciprofloxacin hcl 500 mg escitalopram 20 mg finasteride tablets cialis dosage buy generic levitra viagra receptfritt cheap viagra viagra generico side effects of finasteride is lexapro a controlled substance what is lexapro used for what does ciprofloxacin 500mg treat acyclovir 400 mg cialis side effects side effects of tamoxifen tamoxifen and weight gain cialis 20mg directions lexapro azithromycin drug class how long for azithromycin to take effect free cialis 9 levitra at walmart buy viagra finasteride long term effects cialis patent expiration 2017 levitra 20mg cost per pill what is azithromycin for escitalopram finasteride efectos secundarios tamoxifen therapy what is tamoxifen used for cialis for bph side effects of ciprofloxacin 500 mg ciprofloxacin used for lexapro manufacturer website ciprofloxacin 250mg zovirax for cold sores how long does viagra last cheap cialis viagra natural acyclovir side effects lexapro 10 mg viagra without a doctor prescription usa lexapro coupons zovirax dosage cialis vs viagra zithromax dosage generic levitra vardenafil 20mg levitra 10 mg prezzo female viagra vardenafil vs viagra ciprofloxacin dosierung levitra prezzo in farmacia viagra vs cialis azithromycin for uti effects of stopping lexapro suddenly best price viagra ciprofloxacin side effects in women cipro dangers common side effects of ciprofloxacin 500 mg azithromycin pregnancy levitra vs viagra effects of stopping finasteride buy levitra what is lexapro for lexapro para que sirve lexapro 10mg viagra effects weaning off lexapro side effects lexapro cialis dosage recommendations levitra erfahrungen viagra tablets azithromycin pregnancy category buy generic viagra cialis coupons printable what is finasteride used for viagra ohne rezept auf rechnung liquid cialis cialis discount cialis pricing viagra 100 mg generic cialis at walmart cipro side effects ciprofloxacin acyclovir ointment 5 finasteride 5mg ciprofloxacin hcl 500 mg tab acyclovir dose azithromycin 500 erfahrungen viagra cialis generic tadalafil escitalopram oxalate canadian viagra

Scrivi un commento

Commento