【发布时间】:2021-08-09 21:28:56
【问题描述】:
我在 Ubuntu 中创建了我的项目文件夹:/home/my_username/Projects/drupal9doc1
并放入此文件夹:Docker-based Drupal stack
配置好docker-compose.yml和.env文件,然后在终端写命令:docker-compose up -d
运行Drupal站点本地崛起所需的镜像。
我在我的项目文件夹中创建了带有phpinfo() 函数的index.php 文件来测试一切是如何工作的。
我在网址中写了http://drupal9doc1.localhost:8000
并且File not found显示在我的page页面而不是php版本。
Part of the code in the docker-compose.yml file
Part of the code in the .env file
对于为什么 nginx / docker 的 index.php 文件不可见,您有什么建议吗?
如果您需要更多信息,请在 cmets 中写信给我。
【问题讨论】: