I am using advanced app template which is separated into backend and frontend as you know. And I want to make pretty urls. I have read all documentation about this, a lot of guides, but there is no any effect.
localhost/sitename.com/frontend/web and localhost/sitename.com/backend/web
But I need urls without frontend/web and backend/web. I need frontend url = localhost/sitename.com/ and backend url = localhost/sitename.com/admin. I think that I have to do some overrides in the nginx conf file, but I dont know how to do that.
And I have one more task: create url with subdomain, like this - "localhost/api.sitename.com/actionID"
The main problem is that i am using advanced app template, and when im typing mysite.com, nginx cannot redirect me, because next path is being generated - mysite.com/index.php, but index.php located in the frontend/web/ and backend/web, so nginx could not find index file.