Bluemix ZF2 更改默认索引文件

Bluemix ZF2 change default index file

我是 bluemix 的新手,不知道如何更改默认索引以查看 zend 应用程序的 public 文件夹,所以有一个 php 入门构建,推送应用程序到服务器,当我调用 my_url 时,它显示默认索引文件,当我键入 my_url/public 时,它显示 zend 索引页面(显然)。我想要当我键入 my_url / 默认带我到 public/ 文件夹。 那么有没有人遇到过这种情况"problem"...在他们的论坛上搜索过,但是没有任何关于这种情况的...

在此处查看文档。 https://github.com/cloudfoundry/php-buildpack/blob/master/docs/usage.md

The easiest way to use the build pack is to put your assets and PHP files into a directory and push it to CloudFoundry. When you do this, the build pack will take your files and automatically move them into the WEBDIR (defaults to htdocs) folder, which is the directory where your chosen web server looks for the files.

此外,如果您在 lib 目录中放置任何内容,它将不会公开可用。

如果您将名为 .bp-config/options.json 的文件放在应用程序的根目录中,您可以覆盖 htdocs 目录。

https://github.com/cloudfoundry/php-buildpack/blob/master/docs/config.md#httpd-nginx-and-php-configurations

WEBDIR Set a custom location for your web or public files. This is the root directory from which the web server will host your files and the root directory from which PHP-FPM will look for your PHP files. Defaults to htdocs. Other common settings are public, static or html. Path is relative to /home/vcap/app.