由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 怎样使UNIX下homepage目录下的内容
相关主题
请教e-mail的设置How to open *.bin files?
help! cannot bind to socket!如何只列出文件
Help!how to run an.exe file under unix
help for apache问一个弱智的问题
问个删除文件的问题[转载] 怎样改变一个folder的ownership status?
How to block the access to a directory?怎么把文件所在的目录名加到文件名后面
CXTERM 终结说明[转载] Re: [转载] a UNIX permission question
root做不到的事?Re: [转载] a UNIX permission question
相关话题的讨论汇总
话题: directory话题: sub话题: homepage话题: chmod话题: unix
进入Unix版参与讨论
1 (共1页)
b***n
发帖数: 13455
1
只能以网页的方式显示, 而不能被list?
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

1 (共1页)
进入Unix版参与讨论
相关主题
Re: [转载] a UNIX permission question问个删除文件的问题
怎么才能在Unix里连续跑10个c写的程序 (转载)How to block the access to a directory?
~{TuQyIhVCH(O^0!#?~}CXTERM 终结说明
粗浅一问: UNIX Security modelroot做不到的事?
请教e-mail的设置How to open *.bin files?
help! cannot bind to socket!如何只列出文件
Help!how to run an.exe file under unix
help for apache问一个弱智的问题
相关话题的讨论汇总
话题: directory话题: sub话题: homepage话题: chmod话题: unix