由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 问个弱问题
相关主题
怎么让别人看到主页folder下的文件问个用dropbox的问题
strange behavior about chmod 777 -R问个关于linux下面netpbm的问题 (转载)
请推荐windows远程同步/下载 软件问个基础问题,关于linux command存放地址
how to check disk usage per user?A simple Bash question about changing directory
linux有没有类似logmein的软件ext3 format, how to set folders undeletable, files are writable?
推荐ajaxterm撞墙。。。装 drupal 中 (转载)
tar questionpossible to crash if I copy a file to multiple folders at the same time?
问个关于find 的问题Server efficiency
相关话题的讨论汇总
话题: webappl1话题: html话题: www话题: var话题: appache
进入Linux版参与讨论
1 (共1页)
h**********c
发帖数: 4120
1
不难,这几天在解决一个问题,不是priority,不过雇狗的话,也得一天半天,
如果有答案的话,提前谢了,
Appache 的root 是 /var/www/html
比方下面还有一个 folder /var/www/html/webappl1
那么url http://www.yousite.com/webappl1
里面有一堆文件,其实你不想被别人看见,
怎么样设,url http://www.yousite.com/webappl1
能被映射到http://www.yousite.com/webappl1/index.php
或者是http://www.yousite.com/webappl1/forbidden.php etc.
是在appache里设吧?
o**n
发帖数: 1249
2
设folder的权限不行么?

【在 h**********c 的大作中提到】
: 不难,这几天在解决一个问题,不是priority,不过雇狗的话,也得一天半天,
: 如果有答案的话,提前谢了,
: Appache 的root 是 /var/www/html
: 比方下面还有一个 folder /var/www/html/webappl1
: 那么url http://www.yousite.com/webappl1
: 里面有一堆文件,其实你不想被别人看见,
: 怎么样设,url http://www.yousite.com/webappl1
: 能被映射到http://www.yousite.com/webappl1/index.php
: 或者是http://www.yousite.com/webappl1/forbidden.php etc.
: 是在appache里设吧?

h**********c
发帖数: 4120
3
没试过,
folder 设700
文件设 744?
问题是index.php 或 forbidden.php没连上。
睡了。

【在 o**n 的大作中提到】
: 设folder的权限不行么?
l*******G
发帖数: 1191
4

实验一下这个笨方法:
在/var/www/html/webappl1/ 下放一个index.php ,内容为:
/**
* index.php
* This file simply takes any attempt to view source files and sends
* him to the /var/www/html/index.php instead
*/
header('Location: ../index.php');
?>
也可以用htpasswd 用密码保护/var/www/html/webappl1下的内容。见:
http://www.javascriptkit.com/howto/htaccess3.shtml
还可以 用 -Indexes

Options -Indexes

See:http://ubuntuforums.org/archive/index.php/t-234876.html

【在 h**********c 的大作中提到】
: 不难,这几天在解决一个问题,不是priority,不过雇狗的话,也得一天半天,
: 如果有答案的话,提前谢了,
: Appache 的root 是 /var/www/html
: 比方下面还有一个 folder /var/www/html/webappl1
: 那么url http://www.yousite.com/webappl1
: 里面有一堆文件,其实你不想被别人看见,
: 怎么样设,url http://www.yousite.com/webappl1
: 能被映射到http://www.yousite.com/webappl1/index.php
: 或者是http://www.yousite.com/webappl1/forbidden.php etc.
: 是在appache里设吧?

S*A
发帖数: 7142
5
这种似乎 .htaccess 可以解决了吧。
搞成不能 browse file 的就可以了。

【在 h**********c 的大作中提到】
: 不难,这几天在解决一个问题,不是priority,不过雇狗的话,也得一天半天,
: 如果有答案的话,提前谢了,
: Appache 的root 是 /var/www/html
: 比方下面还有一个 folder /var/www/html/webappl1
: 那么url http://www.yousite.com/webappl1
: 里面有一堆文件,其实你不想被别人看见,
: 怎么样设,url http://www.yousite.com/webappl1
: 能被映射到http://www.yousite.com/webappl1/index.php
: 或者是http://www.yousite.com/webappl1/forbidden.php etc.
: 是在appache里设吧?

h**********c
发帖数: 4120
6
Thanks 4 replies!
r****t
发帖数: 10904
7
吧贫血改一下吧。

【在 h**********c 的大作中提到】
: 不难,这几天在解决一个问题,不是priority,不过雇狗的话,也得一天半天,
: 如果有答案的话,提前谢了,
: Appache 的root 是 /var/www/html
: 比方下面还有一个 folder /var/www/html/webappl1
: 那么url http://www.yousite.com/webappl1
: 里面有一堆文件,其实你不想被别人看见,
: 怎么样设,url http://www.yousite.com/webappl1
: 能被映射到http://www.yousite.com/webappl1/index.php
: 或者是http://www.yousite.com/webappl1/forbidden.php etc.
: 是在appache里设吧?

h**********c
发帖数: 4120
8
这个太抽象了吧?

【在 r****t 的大作中提到】
: 吧贫血改一下吧。
1 (共1页)
进入Linux版参与讨论
相关主题
Server efficiencylinux有没有类似logmein的软件
Opera 界面跟 firefox 一样了不得啊推荐ajaxterm
password protected 目录或者文件tar question
为啥用mmap访问文件的效率高呢?问个关于find 的问题
怎么让别人看到主页folder下的文件问个用dropbox的问题
strange behavior about chmod 777 -R问个关于linux下面netpbm的问题 (转载)
请推荐windows远程同步/下载 软件问个基础问题,关于linux command存放地址
how to check disk usage per user?A simple Bash question about changing directory
相关话题的讨论汇总
话题: webappl1话题: html话题: www话题: var话题: appache