Integrating Apache, Tomcat, and IIS under Windows Server

Source: Internet
Author: User
Tags iis modify php and tomcat

In the article "Perl, PHP, ASP, JSP technology comparison", I used to evaluate and contrast four popular web design languages. As the saying goes, the fish and bear paws are my desire, both can not be both, then there is a way to do the fish and bear the cake, while supporting the four languages of the Web server, Today I'm going to introduce a way to support these four languages in a 80 port based on Windows Server 2003.

Our strategy is: To install three Web servers, Apache is responsible for supporting Perl and Php,iis responsible for supporting the JSP Asp,tomcat, through the Apache Proxy_module three servers integrated into a 80 port.

Install IIS, Apache, and Tomcat first, configure Apache to use port 80, Tomcat uses port 8080, and IIS uses 8081 ports.

Then modify the httpd.conf file in Apache, enable Proxy_module and Proxy_http_module, modify the content is:

LoadModule Proxy_module modules/mod_proxy.so
LoadModule Proxy_http_module modules/mod_proxy_http.so

Then add the following lines to the Apache httpd.conf file:

Proxypass/php!
proxypass/asp/http://localhost:8081/
proxypassreverse/asp/http://localhost:8081/
proxypass/jsp/http://localhost:8080/
proxypassreverse/jsp/http://localhost:8080/

Then set directory permissions on the Web site of each service in <Directory> so that the PHP directory runs Apache, supports PHP and Perl, and the ASP directory runs iis,jsp directory run Tomcat, all can share 80 ports, A port also supports Perl, PHP, ASP, JSP four languages, compatibility is good, performance is also good.

In addition, the above command in <VirtualHost>, you can implement different virtual host using different Web servers, the same port can run multiple Web server, which is useful for those who sell virtual host, If you want to configure a different Web service on a Windows server, you can also try it.

The above configuration is in the context of Windows Server 2003, Apache 2.2.6, Tomcat 6.0.16, IIS 6.0, and is running normally.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.