来源:csdn
apache与resin1的组合。
在apache的配置文件中加:
loadmodule caucho_module "x:/resin/srun/win32-1.3.6/mod_caucho.dll"
<ifmodule mod_caucho.c>
cauchoconfigfile "x:/resin/conf/resin.conf"
<location /caucho-status>
sethandler caucho-status
</location>
</ifmodule>
addhandler caucho-request jsp
<location /servlet/*>
sethandler caucho-request
</location>
apache与resin2的组合。
在apache的配置文件中加:
loadmodule caucho_module "x:/resin/srun/win32-1.3.6/mod_caucho.dll"
<ifmodule mod_caucho.c>
cauchoconfigfile "x:/resin/conf/resin.conf"
<location /caucho-status>
sethandler caucho-status
</location>
</ifmodule>
apache与resin3的组合。
在apache的配置文件中加:
loadmodule caucho_module x:/resin/libexec/apache-2.0/mod_caucho.dll
<ifmodule mod_caucho.c>
resinconfigserver localhost 6802
<location /caucho-status>
sethandler caucho-status
</location>
</ifmodule>
addhandler caucho-request jsp
<location /servlet/*>
sethandler caucho-request
</location>
apache与iis的组合。
apache和iis都是默认80端口,但是如果你不得不用asp程序的话,不要想着去用iasp之类的东西,还是在服务器安装iis吧,安装以后把iis修改端口,然后通过代理的方式来访问iis,达到不需要显露端口的目的。
1、修改apache配置文件,启用proxy模块;
loadmodule proxy_module modules/mod_proxy.so
loadmodule proxy_http_module modules/mod_proxy_http.so
2、继续修改apache配置文件,让apache处理对iis的访问;(这里假使你用的iis端口为88)
proxypass /iis/ http://127.0.0.1:88/
proxypassreverse /iis http://127.0.0.1:88
如果你要使用虚拟主机来实现,可以用下面的代码,(这里是video.com.cn的)
<virtualhost 211.154.103.23:80>
serveradmin b...@video.com.cn
servername blog.video.com.cn
proxypass / http://211.154.103.23:88/
proxypassreverse / http://211.154.103.23:88/</virtualhost>
apache与tomcat的组合。
看网上的资料一般都能够成功,这里不再赘述。
apache支持asp.net的办法。(网上找到的,测试了一下,没有成功,不知道哪一步出了问题)
首先,必须要有windows环境和.net
framework的支持。此外还建议安装安装.net开发工具如.net
framework
sdk或者visualstudio.net。需要注意的是windows的版本应为2000、2003和xp。win9x系列不能安装.net
framework。
然后需要安装apache。应该使用win32平台的apache,版本2.0以上。推荐使用2.0.51版本。下载地址:
进入 http://apache.justdn.org/httpd/binaries/win32/自己选个2.0以上的版本来下(.msi后缀的那些)
下面要下载并安装apache环境下的asp.net模块。下载地址:
地址一:进入 http://httpd.apache.org/cli/
选择 download the mod_aspdo.net 2.0.0 .msi installer
安装路径请与apache的路径一致,否则不能正常安装.
为了便于管理,我们在htdocs目录下新建一个active目录,专门存放.aspx文件。现在需要对httpd.conf文件作一定配置,在文件末尾添加:
#asp.net
loadmodule aspdo.net_module "modules/mod_aspdo.net.so"
addhandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
licx rem resources resx soap vb vbproj vsdisco webinfo
<ifmodule mod_aspdo.net.cpp>
# mount the asp.net example application
as.netmount /active "d:/program files/apache
group/apache2/htdocs/active"
# map all requests for /active to the application files
alias /active "d:/program files/apache group/apache2/htdocs/active"
# allow asp.net scripts to be executed in the active example
<directory "d:/program files/apache group/apache2/htdocs/active">
options followsymlinks execcgi
order allow,deny
allow from all
directoryindex default.htm default.aspx
</directory>
# for all virtual asp.net webs, we need the as.net_client files
# to serve the client-side helper scripts.
aliasmatch /as.net_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \
"c:/windows/microsoft.net/framework/v$1.$2.$3/asp.netclientfiles/$4"
<directory \
"c:/windows/microsoft.net/framework/v*/asp.netclientfiles">
options followsymlinks
order allow,deny
allow from all
</directory>
</ifmodule>
其中d:/program files/apache
group/apache2是apache的安装目录,应根据实际情况更改。
现在可以在active目录下放上asp.net探针。重启apache之后,即可体验apache下的asp.net了。
由于iis和apache下的asp.net都是运行在common language
runtime(crl)的基础上,因此apache环境下的asp.net程序的运行速度不会比在iis下慢。
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器