apache+servlet+jsp Environment setting (middle)

Source: Internet
Author: User
Tags port number root directory

(ii) Apache Server

1, double-click the Apache_1_3_12_win32.exe file for installation, install using the default configuration, the default installation directory is:

C:\Program Files\apache Group\apache, I use $apache_root to replace the installation destination;

2, modify the $apache_root\conf\httpd.conf:

1) PORT

Set the port number to use for the Apache WEB Server runtime, because IIS is running here, IIS uses a 80 port number, so I change it to port 8080, and then I type it in the browser

Http://localhost:8080/can access to the APACHE Web server server, enter http://localhost/access to IIS, so that two WEB servers can be used Oh, I use $apache_port logo ;

2) DocumentRoot

Set the document root directory, when you enter http://localhost on the browser: $APACHE _port/, the server will read data from the document root directory, because my program is placed under D:\HZQ, so I set DocumentRoot to D:/hzq;

3, after the Apache installation in the "Start-> Program" menu group more than the Apache WEB Server menu group, run one of the install Apache as a service, so that in the "Start-> Set-> Control Panel-> Service" There is an extra service called Apache that you can use to start or stop the Apache service;

4, open "Start-> Set-> Control Panel-> Service", select the Apache service, press "Start" to start the Apache service;

5, I entered http://localhost in the browser: $APACHE _port/, I saw all the files under D:\HZQ,

This indicates that the Apache service has been successfully installed.

(iii) Apache Jserv

1, copy the ApacheModuleJServ.dll file to the $apache_root\modules directory;

2, modify the $apache_root\conf\httpd.conf:

Add the LoadModule jserv_module modules/apachemodulejserv.dll to the file to start the Apache Jserv;

3, restart the Apache service.

Related Article

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.