[英]Uploading HTML Files to Display on Openshift PHP 5.4 Website?
I can't get these html files to display AS my Openshift site. 我无法将这些html文件显示为我的Openshift网站。 Only the default Openshift created index.php file shows up (which I have edited; see "Test Test Test" as h1).
只显示默认的Openshift创建的index.php文件 (我已经编辑过;参见“测试测试测试”为h1)。 How do I get MY html files to appear as the HOME page, etc. when I click on my http:/php-....rhcloud.com/ domain name?
当我点击我的http:/ php -.... rhcloud.com/域名时,如何让我的html文件显示为HOME页面等?
It seems that you would like to replace the default index.php
, which comes with the PHP 5.4 cartridge, with your own static Index.html
page. 您似乎想要使用自己的静态
Index.html
页面替换PHP 5.4盒式磁带附带的默认index.php
。 To do that, simply: 要做到这一点,只需:
index.php
from the repo index.php
Index.html
to index.html
(so it now starts with a lowercase i
) Index.html
重命名为index.html
(所以它现在以小写i
开头) git add
, git commit
and git push
both changes git add
, git commit
和git push
两个更改 ...and your index.html
will be rendered by the server instead as the index page when you visit your domain. ...当您访问域时,您的
index.html
将由服务器呈现为索引页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.