APACHE+TOMCAT Implementation Web Services (3)

Source: Internet
Author: User
Tags modify php website web services access tomcat tomcat server
Apache|web|web service Then, embed the following in the Connectors section.

Pooltcpconnector "> Value= "ORG.APACHE.TOMCAT.SERVICE.CONNECTOR.AJP
13ConnectionHandler "/>

Next, embed the following content in the Specialwebapps section.

Docbase= "/home/htdocs"
debug= "0" >

Modify the Workers.properties file.

#vi workers.properties
...
workers.tomcat_home=/home/jakarta-tomcat-4.1.12
...
workers.java_home=/usr/java1.3
...
ps=/
...

Then, modify Tomcat startup and shutdown command files.

#cd. /bin
#vi startup.sh

Then embed the following in front of the "basedir= ' dirname$0" statement.

Path=/usr/java1.3/bin: $PATH:.
java_home=/usr/java1.3
tomcat_home=/home/jakarta-tomcat-4.1.12
Export PATH Java_hometomcat_home
#vi shutdown.sh

Finally, embed the following text before the "basedir= ' dirname$0" statement.

Path=/usr/java1.3/bin: $PATH:.
java_home=/usr/java1.3
tomcat_home=/home/jakarta-tomcat-4.1.12
Export PATH Java_hometomcat_home

At this point, the Apache and Tomcat Server software was installed successfully, above the basic configuration for building a JSP web site under the UNIX (Solaris) platform. The combination of Apache and Tomcat support JSP Dynamic Web page began with a named "Mod_jserv" plug-in to achieve, the use of this apache/jserv way configuration parameters are very complex, inefficient operation, and SSL (a cryptographic transmission mode) support is not ideal, So the Jakarta team has recently developed the "MOD_JK" plug-in, which makes up for the shortcomings of Mod_jserv and supports a variety of Web services outside of Apache. For the realization principle of this apache/jk way, please refer to the relevant information.

Security management and maintenance of application-level access resources in UNIX or liunx environments;
An application-wide encrypted access to resources based on a custom encryption scheme;
Timely conversion of accessed resources, including dynamic output from servlet and JSP.

2. Apache Security Settings

The Apache server sets the security information--access.conf the instructions in the file control the user's access to the site and how to access the information. Includes file tree security, Script Directory security, Options directives, allowoverride directives, using order directives, using limited containers, adding user authentication features, and more.

3 Apache Module (PHP website)

PHP inherits the Apache security settings when it is run as an Apache module. Any file requests are checked by Apache and are sent to PHP only if the request is checked.



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.