Nginnx config for Yii 2 Advanced App Template

后端 未结 4 1276
温柔的废话
温柔的废话 2021-02-09 12:55

I would like to configure the Nginx web-server in such a way that:

  • Requests to the /index.php URI should be handled by public_html/frontend/web
4条回答
  •  清歌不尽
    2021-02-09 13:05

    Try to specify the config Nginx : I use the configuration for "Advanced" template in the domain configuration file, specify the frontend for so:

    listen frontend.site.loc:80; # for frontend

    specify the backend domain: listen backend.site.loc:80; # for backend

提交回复
热议问题