Window server2012 + IIS8.0 + Tomcat integrated Environment setup

Source: Internet
Author: User



Requirements: Build a Web server, generate QR code to download apps, bind domain names, and integrate with Tomcat. System environment: Os:windows Server X64 2G
1. Install the IIS8.0 Web serverWindows7 connect to the server with Remote Desktop Connection, go to Server Manager and view the dashboard. (IIS is available because of installed IIS)

In the upper-right corner, click Manage, add roles and features, select a server from the server pool, click Roles or feature-based installation, select the feature point

Tick the. NET Framework 3.5, then install it until the end

When the installation is complete, go back to the dashboard and click "Tools", "IIS" to enter IIS
This indicates that IIS is installed. Enter localhost to see the IIS8.0 page, and other computers to enter the server's IP can also see IIS8.0 ads.
2. Use your own web pageThere is a default Web site for the new one, and you put your HTML file on the server, such as D:\jack, click Default Web site, and then on the right there is a basic setting that points the physical path to D:\jack. Then enter the server IP will access the D:\jack\index.html, you can also add virtual paths, new sites and so on.


3. bind Domain nameFirst set your own domain name under the default website, click Bind, fill in the domain name


Then go to the domain Control Panel to resolve it to the server IP, and then enter your domain name within 24 hours to see your own Web files.
4.iis8.0 and Tomcat integrationEnglish Course: https://confluence.atlassian.com/pages/viewpage.action?pageId=376210448
Roughly as follows: 1). Install and configure AJP Connector
2). Add ISAPI filtering
3). Add Virtual path
4). User authentication
5). Registering the ISAPI extender
6). Allow Double Escape
Step 1). Installation and configuration AJP ConnectorGoogle or the domestic image download, this time Save uphttp://download.csdn.net/detail/cjvs9k/9500123 download Good ISAPI files in the C:\tomcat_iis_connector directory, as shown in. (In fact, you can put it at will, but the downloaded configuration file is put here by default) go into each file and see what you mean, modify conf\.Workers.properties.minimal, add a line of Tomcat to the location.

Step 2 ). Add ISAPI Filtering (ISAPI Filters)Open the ISAPI filter, if you do not have this icon installed, like installing IIS8.0, English tutorial https://www.iis.net/configreference/system.webserver/isapifilters
ISAPIFilterIsapiFilteris a DLL that runs on an ISAPI-enabled HTTP server to filter data that is sent back and forth between servers. The filter registers the notification of events, such as logins or URL mappings. When a selected event occurs, the filter is called, and you can monitor and change the data (during data transfer from the server to the client or vice versa). You can use ISAPI filters to provide enhanced logging of HTTP requests (for example, trace logins toServerUser), custom encryption, custom compression, or otherIdentity VerificationMethod.
Double-click Enter to fill in the point path.

Step 3 ). Add a virtual pathWhat is called the virtual path, know that Linux people know that Linux can be mounted, this virtual path is the same truth, similar to pointers, pointing to the real physical path.
When you're done, go back to the panel, click handler Mappings


Step 4 ). User authenticationSelect authentication in the panel, enable Windows authentication
Step 5 ). Registering the ISAPI extender
Select Edit after entry to allow the extension to be executed
Step 6 ). Allow Double escapingWhat is called double escaping, such as http://www.wnopos.com/question/why+we+so+good+and+convenient with + is double escaping, which is common in search engines. Back to the panel, select Request Filter, edit function settings on the right, allow double escape.
This time visit my personal domain http://connonfodder.cn/will be able to see the Dear Tomcat page

Supplement: 1.IIS Setup file can be downloadedabout APK Scan code to download, first go to http://www.liantu.com/follow the rules to generate pictures, which appeared to be a problem is 404 can not access, and later found that need to set the file can be downloaded

Select to your site. Right-click the button. Select Attribute (properties)

HTTP headers (httpheaders) tab, MIME type (mimetypes)

New, enter the extension. apk type (MIME) application/vnd.android

Complete!


Add: 2.IIS filter request to get the corresponding page After integrating Tomcat, the default index.html under the website will not be accessed but run directly into Tomcat to get the data, and then come to know the essence, Iis-tomcat is just a filter forwarding tool, configuration file can specify the forwarding rules, this time need to edituriworkermap.properties, set/.JSP=WORK1, can go to see the official explanation.Https://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html so that unless it is a JSP, it will not go to Tomcat to get the data.
    1. The Iis-tomcat Redirector is a IIS plugin (filter + extension), IIS load the redirector plugin and calls its filter function For each in-coming request.
    2. the filter then tests the request URL against a list of uri-paths held inside Uriwork Ermap.properties, If the current request matches one of the entries in the list of uri-paths, the filter transfer the REQU EST to the extension.
    3. the extension collects the request parameters and forwards them to the appropriate WO Rker using the defined protocol Like ajp13   .
    4. the extension collects the response from the worker and returns it to the browser.
Iis-tomcat redirection is an IIS plug-in that filters every request after IIS is loaded, and if there is a match in uriworkermap.properties to one of them will pass the request to IIS so how do you integrate it against php,jsp,.net?

Defining workers is do in workers.properties, this file includes both types of entries:

An entry, lists all the workers definedWorker.list=worker1, Worker2
Entries that define the host and port associated with these workersWorker.worker1.host=localhost
worker.worker1.port=8009
Worker.worker1.type=ajp13
Worker.worker2.host=otherhost
worker.worker2.port=8009
Worker.worker2.type=ajp13

The above example defined-workers, now-we can use these workers to serve-different-contexts each and its-own work ER:

example uriworkermap.properties fragment /examples/*=worker1 
/webpages/*=worker2 

As you can see the examples context was served by Worker1 while the webpages context is served by worker2 .



2. The following issues need to be resolvedquestion: What is 1.Tomcat and Apache exactly? What exactly is 2.DNS? The principle of domain binding3. Mail server

i ' m fish, I ' m on.

Window server2012 + IIS8.0 + Tomcat integrated Environment setup

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.