Thursday, March 17, 2016

File-level mapping introduced in H2O version 2.0

As the developer of H2O, the lack of ability to define a mapping for a specific path (not a directory) has been one of the complaints I hear the most. Finally, we have a fix for the issue, and that is why the next release will be given the number 2.0.

Starting from H2O version 2.0.0beta-1, it is possible to write a configuration like the following. The example maps all requests to a FastCGI server, with the exception of /robots.txt and /favicon.ico being served statically.
paths:
  /:
    fastcgi.connect:
      port: /tmp/fcgi.sock
      type: unix
  /robots.txt:
    file.file: /path/to/robots.txt
  /favicon.ico:
    file.file: /path/to/favicon.png
Pretty straight forward, isn't it?

For details, please refer to the updated documentation of paths directive, or refer to the discussion in the pull request.

9 comments:

  1. keren artikelnya gan
    kunjungi juga ya gan dengan web kebanggan kami poker online indonesia http://www.betdanwin.com/
    bonus 20% deposit dan ada komisi referral 50% untuk member yang mengajak teman-temannya mohon partisipasinya siapa tau membutuhkannya makasihh gan :)

    ReplyDelete
  2. TERBARU PROMO BONUS DEPOSIT 100% HANYA DI BETDANWIN POKER ONLINE INDONESIA TERPECAYA
    KURANG BERUNTUNG DI POKER YANG ANDA MAIKAN SEKARANG??
    SUDAH SAAT NYA ANDA BERMAIN DI POKER WWW.BETDANWIN.COM DAPATKAN JACKPOT SAMPAI RATUSAN JUTA RUPIAH.
    Minimal Deposit 10.000 Withdraw 20.000.
    WWW.BETDANWIN.COM
    JADILAH MEMBER AKTIF REFERRAL 50% SEUMUR HIDUP
    KUNJUNGI DAN LIKE FANPAGE KAMI https://www.facebook.com/BetdanWin-1071580636209445/?ref=ts&fref=ts

    ReplyDelete
  3. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.
    contact form | snapchat emoji

    ReplyDelete
  4. Always so interesting to visit your site.What a great info, thank you for sharing. this will help me so much in my learning. free xbox live codes
    Thanks for sharing this post with us.

    ReplyDelete
  5. The share your really gives us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!
    hotmail sign in | red ball 1

    ReplyDelete
  6. This is one of the cult game now, a lot of people enjoy playing them . Also you can refer to the game :
    animal jam 2 | five nights at freddys 2 | hotmail login

    ReplyDelete