由 royce 在 12-03-2002 17:24 发表:
完全安装的redhat8.0能支持CGI吗?
不能的话要怎么设置才能支持??????谢谢
CPU:AMD64 3000+
显卡:GeForceFX5500
内存:512M
硬盘:sata120G
系统:xp,freebsd,slk
royce的小窝:http://royce.blogchina.com/
由 royce 在 12-03-2002 18:50 发表:
晕,看的人好多但都没人回啊,是不知道啊还是不肖啊
CPU:AMD64 3000+
显卡:GeForceFX5500
内存:512M
硬盘:sata120G
系统:xp,freebsd,slk
royce的小窝:http://royce.blogchina.com/
由 北南南北 在 12-04-2002 03:34 发表:
把配制文件发上来,我也查了好久的帖子,老实巴交兄弟也有这样的问题,主要可能是弟兄们不需要CGI。。。。。
===========================
请弟兄们发帖时要写个好标题,多谢!
===========================
每天以1000KM/H的速度在跑,感觉还是时间不够:(
“西学东渐,洋为中用” + 创造 = ?
linux ppc
由 royce 在 12-04-2002 12:33 发表:
老大,你能帮我试一下吗
在APACHE的配置文件中
去掉加注释的以下语句:
AddHandler cgi-script .pl
AddHander cgi-script .cgi
原文:
APACHE WEB SERVER管理
2001-01
查看当前UNIX环境下有无运行Apache Web Server
在终端控制台上运行#ps -ef|grep httpd
如果运行了,会列出一些包含路径信息的进程;去这个路径下找httpd.conf即可知服务器的配置。
启动和关闭Apache Web Server
在运行Apache/bin路径下找到apachectl命令
#apachectl start
#apachectl stop
httpd.conf参数介绍:
知道WEB的管理目录位置
找到: ServerRoot "/../..."
知道WEB的根目录位置
找到: DocumentRoot "/../..."
知道WEB各虚拟路径的映射
Alias /icons/ "/opt/www/icons"
..........
ScriptAlias /cgi-bin/ "opt/www/cgi-bin"
..........
支持SSI
在
1<directory "="" directory"="" documentroot's="">
2
3增加Option +Includes +ExecCGI
4
5(其它参数说明:Indexes 容许路径下的目录浏览
6
7FollowSymlinks 容许使用符号连接,连到别处
8
9MultiViews 找相似的文件名)
10
11去掉加注释的以下语句:
12
13AddType text/html .shtml
14
15AddHander server-parsed .shtml
16
17(如果想使htm文件支持SSI,增加以下语句
18
19AddType text/html .htm
20
21AddHander server-parsed .htm
22
23)
24
25
26
27支持CGI
28
29去掉加注释的以下语句:
30
31AddHandler cgi-script .pl
32
33AddHander cgi-script .cgi
34
35
36
37初始的文件名
38
39DirectoryIndex index.html
40
41(如果想增加别的类别文件,只需在这后面增加index.htm或index.php即可)
42
43
44
45性能优化
46
47MaxKeepAliveRequests 1024
48
49MaxClient 256
50
51
52
53给WEB路径加密
54
55创建#htpasswd -c 加密用户库.db 用户名
56
57new password:****
58
59Re-type new passwd:****
60
61
62
63改<directory "="" directory"="" documentroot's="">
64
65AllowOverride ALL
66
67(作用:使每个路径下的.htaccess文件有效)
68
69</directory>
70
71
72
73在欲加密的路径下建一个隐含文件.htaccess, 内容如下:
74
75AuthType Basic
76
77AuthName Information
78
79AuthUserFile /directory/加密用户库.db // 记录用户名密码的隐含文件路径和名称<b</directory>