当我将以下内容放入我的Apache.conf文件中时,我的网站正常工作:
<Directory /home/demo/popHealth/public>
RailsEnv development
AllowOverride all
Options -MultiViews
</Directory>
但是在配置文件重建的实例中它会丢失。我在文件中看到以下注释:
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_2/demo/demo.concinnity.me/*.conf"
我将此文字逐字地放入该位置的文件中,但它似乎不起作用。我尝试取消注释include行,以便没有明确的指令来包含这些文件,但这也没有用。我如何使用包含文件?
答案 0 :(得分:0)
您必须取消注释并调整该行:
# Include "/usr/local/apache/conf/userdata/std/2_2/demo/demo.concinnity.me/MyInclude.conf"
(请务必在此处指定正确的路径。)
您可以打开此文件并对其进行修改:
"/usr/local/apache/conf/userdata/std/2_2/demo/demo.concinnity.me/MyInclude.conf"
。