📄 apache_setup.html
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; Charset=GB2312" />
<title>WAPmo v1.1安装手册(安装在Apache服务器上)</title>
<style>
<!--
TD{font-family: 宋体; font-size: 14px;}
TABLE{table-layout: fixed;word-wrap:break-word;}
H4{COLOR: #0000FF}
//-->
</style>
</head>
<body>
<h3 align="center">WAPmo v1.1 平台安装手册<br/></h3>
<hr/>
<table width="100%" border="0">
<tr>
<td align="center"><h4>安装在Apache服务器上</h4></td>
</tr>
<tr>
<td>Apache是非常友好,功能强大的Web服务器,由于Apache配置的多样性,这里只以虚拟主机为例:<br/>
打开httpd.conf文件<br/>
1、找到<br/>
<font color="#0000FF">LoadModule rewrite_module modules/mod_rewrite.so</font><br/>
把该行前面的<font color="#0000FF">#</font>去掉<br/><br/>
2、新建虚拟主机,在httpd.conf最后面输入:<br/><br/>
NameVirtualHost *:80<br/><br/>
<VirtualHost *:80><br/>
DirectoryIndex <font color="#FF0000">index.wml</font><br/>
ServerAdmin name@server.com<br/>
ServerName "wap.wapmo.cn"<br/>
DocumentRoot "E:/www/wapmo/html/" <--E:/www/wapmo即wapmo的解压目录<br/>
ScriptAlias /cgi-bin/ "E:/www/wapmo/cgi-bin/"<br/>
Alias /images/ "E:/www/wapmo/images/"<br/>
<Directory "E:/www/wapmo/cgi-bin"><br/>
Options ExecCGI<br/>
</Directory><br/>
RewriteEngine On<br/>
RewriteCond %{REQUEST_URI} ^/attach/<br/>
RewriteRule ^/attach/(.*)/(.*)/(.*)\.(.*) E:/www/wapmo/cgi-bin/attach.cgi?$1+$2 [T=application/x-httpd-cgi]<br/>
ErrorLog "C:/Apache2/logs/wapmo_error.log"<br/>
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br/>
CustomLog "C:/Apache2/logs/wapmo_access.log" vcommon<br/>
</VirtualHost><br/><br/>
E:/www/wapmo/就是WAPmo程序目录<br/>
如果/cgi-bin/脚本目录与主配置里的/cgi-bin/冲突,请改为其他名称,例如:/wapmo/<br/>
重新启动Apache服务器使之生效<br/>
</td>
</tr>
</table>
<hr />
<table width="100%" border="0">
<tr>
<td align="left"><< <a href="System.html">系统需求</a></td>
<td align="right"><a href="IIS_Setup.html">安装在IIS服务器上</a> >></td>
</tr>
</table>
<hr/>
<p align='center'>© 2004-2005, WAPmo 软件工作室 版权所有</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -