[FastCgi + Fpm] Extract generic server code