选择显示字体大小

windows下面apache和resin各版本、iis的组合

来源:csdn

apache与resin1的组合。

在apache的配置文件中加:

loadmodule caucho_module "x:/resin/srun/win32-1.3.6/mod_caucho.dll"
<ifmodule mod_caucho.c>
cauchoconfigfile &quot;x:/resin/conf/resin.conf&quot;
<location /caucho-status>
sethandler caucho-status
</location>
</ifmodule>

addhandler caucho-request jsp
<location /servlet/*>
sethandler caucho-request
</location>

apache与resin2的组合。

在apache的配置文件中加:
loadmodule caucho_module &quot;x:/resin/srun/win32-1.3.6/mod_caucho.dll&quot;
<ifmodule mod_caucho.c>
cauchoconfigfile &quot;x:/resin/conf/resin.conf&quot;
<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 &quot;modules/mod_aspdo.net.so&quot;
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 &quot;d:/program files/apache
group/apache2/htdocs/active&quot;
# map all requests for /active to the application files
alias /active &quot;d:/program files/apache group/apache2/htdocs/active&quot;
# allow asp.net scripts to be executed in the active example
<directory &quot;d:/program files/apache group/apache2/htdocs/active&quot;>
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+)/(.*) \
&quot;c:/windows/microsoft.net/framework/v&#36;1.&#36;2.&#36;3/asp.netclientfiles/&#36;4&quot;
<directory \
&quot;c:/windows/microsoft.net/framework/v*/asp.netclientfiles&quot;>
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   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons