web服务器权限问题(apache),详细情况如下,一目了然,大家一看就懂了。。。
//但是我很不理解的是,为什么我加了执行权限,还是不可以,最后设置777,就没问题了。
再说明下,那些图片和法flash,是人家广告商要用的。
[root@testcms ~]# cd /testmtouch_adv/
[root@testcms testmtouch_adv]# ll
total 48
drwxr-xr-x 11 root root 4096 Aug 3 11:20 admin
-rw-r--r-- 1 root root 3094 Jul 18 12:33 adminLogin.jsp
drwxr-xr-x 3 root root 4096 Jul 18 12:07 css
drwxr-xr-x 2 root root 4096 Jul 18 12:07 ftpmovies
drwxr-xr-x 4 root root 4096 Jul 18 12:11 images
-rw-r--r-- 1 root root 366 Jul 18 13:27 index.htm
-rw------- 1 root root 1807 Dec 21 13:16 lanmiao.html
drwxr-xr-x 3 root root 4096 Jul 18 12:11 META-INF
drwxr-xr-x 5 root root 4096 Jul 18 16:36 script
drwxr-xr-x 2 root root 4096 Jul 18 13:12 systemscript
drwxr-xr-x 8 root root 4096 Jul 18 16:16 uploadfiles
drwxr-xr-x 6 root root 4096 Jul 25 18:09 WEB-INF
[root@testcms testmtouch_adv]# chmod +x lanmiao.html
还是不行。。。
[root@testcms testmtouch_adv]# ll
total 200
-rwxr-x--- 1 root root 151542 Dec 21 13:18 057996e2-0df8-416a-a46d-b5958ef50263.jpg
drwxr-xr-x 11 root root 4096 Aug 3 11:20 admin
-rw-r--r-- 1 root root 3094 Jul 18 12:33 adminLogin.jsp
drwxr-xr-x 3 root root 4096 Jul 18 12:07 css
drwxr-xr-x 2 root root 4096 Jul 18 12:07 ftpmovies
drwxr-xr-x 4 root root 4096 Jul 18 12:11 images
-rw-r--r-- 1 root root 366 Jul 18 13:27 index.htm
-rwx--x--x 1 root root 1807 Dec 21 13:16 lanmiao.html
drwxr-xr-x 3 root root 4096 Jul 18 12:11 META-INF
drwxr-xr-x 5 root root 4096 Jul 18 16:36 script
drwxr-xr-x 2 root root 4096 Jul 18 13:12 systemscript
drwxr-xr-x 8 root root 4096 Jul 18 16:16 uploadfiles
drwxr-xr-x 6 root root 4096 Jul 25 18:09 WEB-INF
[root@testcms testmtouch_adv]# mv 057996e2-0df8-416a-a46d-b5958ef50263.jpg 11.jpg
[root@testcms testmtouch_adv]# chmod 777 11.jpg
[root@testcms testmtouch_adv]#
[root@testcms testmtouch_adv]# chmod 777 lanmiao.html
###########################################################################################
2011-12-23 修改:
[root@testcms testmtouch_adv]# ll
total 212
-rwx--x--- 1 root root 151542 Dec 21 13:18 11.jpg
drwxr-xr-x 11 root root 4096 Aug 3 11:20 admin
-rw-r--r-- 1 root root 3094 Jul 18 12:33 adminLogin.jsp
drwxr-xr-x 3 root root 4096 Jul 18 12:07 css
drwxr-xr-x 2 root root 4096 Jul 18 12:07 ftpmovies
drwxr-xr-x 4 root root 4096 Jul 18 12:11 images
-rw-r--r-- 1 root root 366 Jul 18 13:27 index.htm
-rw-r--r-- 1 root root 643 Dec 23 23:05 jijin.html
-rw------- 1 root root 805 Dec 19 16:08 lanmiao-300x250-20111216.swf
-rwxrwxrwx 1 root root 1807 Dec 21 13:16 lanmiao.html
drwxr-xr-x 3 root root 4096 Jul 18 12:11 META-INF
drwxr-xr-x 2 root root 4096 Dec 23 23:05 pic
drwxr-xr-x 5 root root 4096 Jul 18 16:36 script
drwxr-xr-x 2 root root 4096 Jul 18 13:12 systemscript
drwxr-xr-x 8 root root 4096 Jul 18 16:16 uploadfiles
drwxr-xr-x 6 root root 4096 Jul 25 18:09 WEB-INF
[root@testcms testmtouch_adv]#
然后远程访问,-rw-r--r-- 1 root root 643 Dec 23 23:05 jijin.html却可以打开。。。很奇怪
--------------------------------------------------------------------------------------------
下面内容是之前写的别的博客上的内容:
apche resin 源代码
LoadModule caucho_module /opt/apache2/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
_________________________________________________________________
安装完resin之后会自动有上面的代码,可能没有下面的,如果没有下面的,用apache转发之后的网站打开就只源代码了。。。
SetHandler caucho-status
AddHandler caucho-request action
SetHandler caucho-status
1.41服务器,虚拟主机端口被禁止。。。(43.jpg大胸mm无法显示,打不开)
修改方法:
NameVirtualHost *:8099
# ServerAdmin
DocumentRoot /cmspic
ServerName localhost
cmspic>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
//所有虚拟主机均这么设置!!!
NameVirtualHost *:8093
# ServerAdmin
DocumentRoot /zixunpic
ServerName localhost
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
- # ErrorLog logs/dummy-host.example.com-error_log
- # CustomLog logs/dummy-host.example.com-access_log common
**************************************************************************************************************************************************************************
阅读(1331) | 评论(0) | 转发(0) |