目录索引禁止的操作指令 [英] Directory index forbidden by Options directive
问题描述
我使用的是DOMPDF插件codeigniter:<一href="http://$c$cigniter.com/wiki/PDF_generation_using_dompdf/">http://$c$cigniter.com/wiki/PDF_generation_using_dompdf/
I'm using the dompdf plugin for codeigniter: http://codeigniter.com/wiki/PDF_generation_using_dompdf/
要生成一个表格的PDF。这个工作在本地主机上,但现场服务器上我得到这个错误日志:
to generate pdfs from a form. This works on localhost, but on the live server I get this in the error log:
Directory index forbidden by Options directive: /var/www/vhosts/domain.co.uk/httpdocs/mm/userdata/account1/invoices/
任何想法,这是什么意思?我寻找答案,并找到了几个建议编辑httpd.conf,但是我没有进入这个。
Any idea what this means? I've searched for answers, and found a few that suggest editing the httpd.conf, however I don't have access to this.
我也尝试添加一个空白的index.html文件的根和文件目录(如在其他地方也提出,但无济于事)。
I've also tried adding a blank index.html file to the root and document directory (as also suggested elsewhere, but to no avail).
任何帮助非常AP preciated。
Any help greatly appreciated.
谢谢!
推荐答案
通过主的httpd.conf
或的.htaccess
此目录或附近的父目录中的文件可能包括:
Either the main httpd.conf
or the .htaccess
file in this directory or a nearby parent directory probably includes:
Options -Indexes
您的主机可能需要将其设置为 +指数
如果你没有在的.htaccess
接入和要列出目录,缺席默认的index.html,index.php文件
等。如果目录中不应该有一个默认的文件,并没有启用索引
,你只能直接针对的文件名。
Your host may have to set it to +Indexes
if you don't have access in .htaccess
and want to list the directory, absent a default index.html, index.php
, etc. If the directory should not have a default file and you don't enable Indexes
, you may only directly target the the filenames.
这篇关于目录索引禁止的操作指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!