我希望能够使用 OpenShift Wordpress 示例为组织托管 wordpress 博客。我想做的是让它像这样设置:
-
http://www.example.com =>一个简单的索引.html其中包含一些组织链接。有点像登陆页面。这根本不会是wordpress博客的一部分。
-
http://www.example.com/blog => WordPress博客。
我遇到的麻烦是试图让wordpress从子目录而不是子域或根域提供。我已经尝试了法典给出的指示。每当我将 wordpress 安装移动到/blog 子目录时,重新启动服务器都会给我以下错误:
Pushing to ##.....
remote: Stopping PHP cartridge
remote: Waiting for stop to finish
remote: Stopping MySQL cartridge
remote: Building PHP cartridge
remote: Starting application website
remote: Starting MySQL cartridge
remote: Database already configured.
remote: Starting PHP cartridge
remote: Syntax error on line 2 of /var/lib/openshift/523540c05973ca9f4e000418/php/configuration/etc/conf.d/openshift.conf:
remote: DocumentRoot must be a directory
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute: 'control start' for /var/lib/openshift/523540c05973ca9f4e000418/php
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://....
fcd93d5..480ca5d master -> master
updating local tracking ref 'refs/remotes/origin/master'
Completed successfully
我不确定该怎么做才能解决这个问题....无论如何我可以修复此设置吗?或者有没有办法让我保持设置不变,但设置我的 DNS 记录以从/blog 子目录提供博客?
我在这里的经验有限,所以我在黑暗中盲目刺伤,效果不太好......
我能够让它存在于子域上,但我宁愿不这样做,因为我组织的网站无论如何都存在于子域上,所以它会像:http://blog.sub.example.com,这只是很多点......感谢您的任何指示!
尝试将其添加到 php/blogs/* 而不是 blogs/*