2012-02-23 56 views
0

我想列出文件在一个特定的目录和一个特定的IP。这个htaccess文件位于该目录中。到目前为止,似乎主机不允许我列出目录。在本地主机上,我可以列出该目录中的所有内容,当然除了IndexIgnore之外。 htaccess的文件内容是:htaccess目录列表

Options +Indexes 

<Limit GET POST> 
order deny,allow 
deny from all 
allow from 1.1.1.1 
</Limit> 

IndexIgnore tabele_remote.php 
IndexIgnore demo.txt 
IndexIgnore functions.php 
IndexIgnore config.php 

回答

1

看来,AllowOverride指令设置的地方以前

还要检查有没有IndexIgnore *父目录或服务器设置完全

+0

它试图列出目录,但没有文件。 imageshack.us/f/857/capture1qv.jpg – machineaddict 2012-02-23 08:07:30

0

变化order deny,alloworder allow,deny,并给它一个尝试。

还设置AllowOverride all

+0

它试图列出目录,但没有文件。 http://imageshack.us/f/857/capture1qv.jpg/ – machineaddict 2012-02-23 08:07:03

+0

你有该目录中的文件? – ThinkingMonkey 2012-02-23 08:10:21

+0

是的。相同的文件在本地主机 – machineaddict 2012-02-23 11:14:47