Redian新闻
>
怎样使UNIX下homepage目录下的内容
avatar
T*r
2
add index.htm or index.html in the current directory

【在 b***n 的大作中提到】
: 只能以网页的方式显示, 而不能被list?
avatar
b*n
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
avatar
c*t
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

avatar
b*n
5
doesn't work...even chmod 0 the problem still exists

directory,
the
want

【在 c*****t 的大作中提到】
: chmod 711 instead of 755
avatar
r*a
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

avatar
D*g
7
depends on your httpd server

【在 b***n 的大作中提到】
: 只能以网页的方式显示, 而不能被list?
avatar
s*s
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

avatar
wy
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

avatar
c*t
10
Your browser also caches stuff.

【在 b***n 的大作中提到】
: doesn't work...even chmod 0 the problem still exists
:
: directory,
: the
: want

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。