Integration of apache2.0.48 and resin3.0.8 in Linux as4

Source: Internet
Author: User

1. Configure Apache # vi/usr/local/Apache/CONF/httpd. conf

Search: remove the preceding comments from namevirtualhost. To:

Add a virtual host configuration after namevirtualhost *: 80:

<Virtualhost *: 80>

Serveradmin webmaster@nanu.8866.org

DocumentRoot/WWW

Servername nanu.8866.org

</Virtualhost>

At the end of the file, change it:

# Mod_caucho resin Configuration

# Loadmodule caucho_module/usr/local/Apache/modules/mod_caucho.so

Resinconfigserver localhost 6802.

Cauchostatus Yes

<Ifmodule mod_caucho.c>

<Location/Caucho-status>

Sethandler Caucho-status

</Location>

</Ifmodule>

Addhandler Caucho-request JSP

<Location/servlet/*>

Sethandler Caucho-Request

</Location>

2. Configure the resin (virtual host)

# Cd/usr/local/resin # ln-S./httpd. PID./resin. PID // create a soft link to the PID file required for resin operation.

# Cp./contrib/init. Resin/etc/rc. d/init. d/resin // copy the sysv script of resin.

# Chkconfig -- add resin // Add the resin to the sysv service and start automatically upon startup.

# Cp./CONF/resin. conf./CONF/resin. conf. Bak //. Back up the configuration file first.

# Vi./CONF/resin. conf: // configure the default host and match any host name.

<Host ID = "" Root-directory = ". "> // host ID =" "because no host name is specified, it can match any host name. This setting is only applicable to a single host, if you want to create a virtual host, you must specify the host ID = "yourdomain". Otherwise, any virtual host configured later will automatically match the host, and the virtual host will become invalid.

<Web-app id = "/" document-directory = "webapps/root"/> // replace webapps/root with your actual site root directory.

</Host>

# Service resin start

# Service httpd restart

# More/usr/local/resin/log/stdout. Log // check whether the startup or shutdown logs of resin are correct.

# More/usr/local/resin/log/stderr. Log // check the error message log of resin.

# More/usr/local/resin/log/JVM. Log // check JVM logs.

Test open browser, enter http://nanu.8866.org/caucho-status if the page showing the current running status of resin is normal.

 

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.