b***n 发帖数: 13455 | |
T********r 发帖数: 6210 | 2 add index.htm or index.html in the current directory
【在 b***n 的大作中提到】 : 只能以网页的方式显示, 而不能被list?
|
b***n 发帖数: 13455 | 3 I have done that. But if I have a sub-directory under my homepage directory,
it is accessible. For example, if you type www.bison.com/image, then all the
files under the image sub-directory will be listed. That's the problem I want
to solve
【在 T********r 的大作中提到】 : add index.htm or index.html in the current directory
|
c*****t 发帖数: 1879 | 4 chmod 711 instead of 755
【在 b***n 的大作中提到】 : I have done that. But if I have a sub-directory under my homepage directory, : it is accessible. For example, if you type www.bison.com/image, then all the : files under the image sub-directory will be listed. That's the problem I want : to solve
|
b***n 发帖数: 13455 | 5 doesn't work...even chmod 0 the problem still exists
directory,
the
want
【在 c*****t 的大作中提到】 : chmod 711 instead of 755
|
r**a 发帖数: 630 | 6 config the web server to disable listing of directory contents, just FYI
【在 b***n 的大作中提到】 : doesn't work...even chmod 0 the problem still exists : : directory, : the : want
|
D****g 发帖数: 2860 | 7 depends on your httpd server
【在 b***n 的大作中提到】 : 只能以网页的方式显示, 而不能被list?
|
s**s 发帖数: 242 | 8 cp /dev/null xxx/htdocs/image/index.html
【在 b***n 的大作中提到】 : I have done that. But if I have a sub-directory under my homepage directory, : it is accessible. For example, if you type www.bison.com/image, then all the : files under the image sub-directory will be listed. That's the problem I want : to solve
|
wy 发帖数: 14511 | 9 that's impossible. ZFor your subdirectory. do:
chmod o-r sub and chmod g-r sub
But for all files inside sub, just let them readable.
try again. if you try to list, u shd get a 403 forbidden error
【在 b***n 的大作中提到】 : doesn't work...even chmod 0 the problem still exists : : directory, : the : want
|
c*****t 发帖数: 1879 | 10 Your browser also caches stuff.
【在 b***n 的大作中提到】 : doesn't work...even chmod 0 the problem still exists : : directory, : the : want
|