I would like to configure the Nginx web-server in such a way that:
/index.php
public_html/frontend/web
This guy has done a very good job of creating advanced app nginx config (with subdomain which IMHO is the best setup): https://gist.github.com/Kison/45ec9ce3c1ebf422cbd42bd5ce04d8e4