directory.
$make
③ Installation
$su#make Install
2) Compiling and installing MOD_JK plug-ins
① Solution Package
$/usr/local/bin/gzip-dcjakarta-tomcat-4.1.12-src.tar.gz|tarxf-
② compilation
$CD jakarta-tomcat-4.1.12-src/src/native/apache1.3$/home/apache-1.3.27/bin/apxs-omod_jk.so-d Solaris-i. /jk-i/Usr/java1.3/include-i/usr/java1.3/include/solaris-lposix4-c*.c.. /jk/*.c
Suppose Java is installed in the/usr/java1.3 directory.
③ Ins
. ajp13 is the preferred method for mod_jk to connect webserver and Tomcat (that is, socket is used as the communication channel)
Worker. worker1.type = ajp13
# Load Balancing Factor
Worker. worker1.lbfactor = 1
Note: The worker name in worker. List should correspond to jkmount In the httpd. conf configuration file of Apache HTTP Server (detailed later ).
3. Modify the httpd. conf configuration file of Apache
A few months ago to study the architecture and deployment of the next apache2, after a long time to find incredibly completely forget, had to re-write a log for easy access later.First I use the Ubuntu system, not for anything else, just its handy software installation and uninstallation process makes you irresistible. Especially in the redhat under the struggle for hours, install a successful software, suddenly found in Ubuntu only need a line of com
timestamp format of the MOD_JK log (optional)Jklogstampformat "[%a%b%d%h:%m:%s%Y]"#/*.action and/*.jsp types of requests are assigned to Tomcat, and the remaining types have Apache Http server handling themselves# Note the name of the worker in Worker.list in the Worker.properties file that follows the worker1 of JkmountJkmount/*.action Worker1Jkmount/*.jsp Worker1
4. Modify Directoryroot
Most of the art
/modules: apache supports many modules. the modules you want to use are stored in this directory by default;/Var/www/html: the default "homepage" directory of CentOS;/Var/www/error: the default system error message. if the host is set incorrectly or the data requested by the browser is incorrect, the error message displayed in the browser is based on the information here;/Var/www/icons: provides some small icons of
Production environment You may encounter the phenomenon that the log log file generated by the Web server fills up the disk, and the following is a specific solutionInstalling the HTTPD Web Service[email protected] ~]# Yum install httpd-yStart[[email protected] ~]#/etc/init.d/httpd startTest[[email protected] ~]# lsof-
displayed in the browser is based on the information here;/Var/www/icons: provides some small icons of apache;/Var/www/cgi-bin: The Directory of some executable CGI programs by default;/Var/log/httpd: directory of log files. The files here are easy to increase and sufficient space is required;/Usr/sbin/apachectl: This is the main execution file of
Recently want to record the use of log4j, took a little time through the collection of information on the Internet to organize the blog, I hope to need to use log4j log friends a little help, if there is a wrong place to correct. Log4j is an open source project for Apache, by using log4j, we can control the destination of log information delivery is console, file
In the access log file access_log of the httpd server, a large amount of client access information is recorded. By analyzing this information, you can know the access to the web site in a timely manner. However, because the access_log file records too much information, it is inconvenient to view it, so we use the AWStats analysis system to generate a graphical interface.
AWStats is an open-source
Ubuntu 12.04 Build Web server (mysql+php+apache) tutorial1. Switch Administrator statusYou need to use root in Ubuntu, so make sure to log in as root with the following command:sudo su2. Start the SSH installation(Install Ssh-server: (with Xshell operation more convenient, first get SSH service support)sudo apt-get updatesudo apt-get install openssh-server openss
Redhat Linux, the default is to use the inetd server to run Apache, so as long as you choose the installation of httpd, the above work in the installation has been done for you.
Second, other configuration options
The Server Admin command, which is used to set the Web administrator's e-mail address. This address can occur when a system connection error occurs so that visitors can inform the
I,
Web
Log deployment1. apache log files are single and can easily reach the limit of 2 GB. It is easy to fill up/var volumes, and it is necessary to automatically split them, then you can use the automatic processing program for compression and other operations. To process Apache
Read a lot of online on the Linux operating system to build a Web server tutorial, so I myself also tested a lot, but today tested Ubuntu 12.04 Build Web Site Server (mysql+php+apache environment), feel this suitable for beginners. So here's to share with you. In fact, this online also has a tutorial, but I am here to optimize the predecessors of the tutorial, be
One, ApAche IntroductionApache HTTP Server is an outstanding representation of open source software projects, providing web browsing services based on standard HTTP network protocols and maintaining over half of the Web server space over the long term. Apache server can be run in various operating platforms such as Lin
This completes cronolog configuration and installation. By default, cronolog is installed under/usr/local/sbin.The command to modify apache Log configuration is as follows:
CustomLog "|/usr/local/sbin/cronolog /www/logs/secfocus/%w/access_log" combined
Here, % w indicates that logs are saved in different directories Based on the date and day of the week. In this way, log
Before proceeding, we must tell you that Apache has adopted a series of default values during installation and has enabled the WWW server to run. You only need to connect the host installed with Linux + Apache to the Internet, and then store the home page under the "/home/httpd" directory.
The following describes the meanings of some of the most important configuration options, so that you can prepare t
Testing of the computing performance and stability of Web Server combinations, nginx + php vs Apache + php
In this test, which combination of nginx + php and apache + php has better computing performance and stability?Operating System: Centos6.4 x64Hardware environment:Server IP AddressHardware configurationRole192.168.1.24 Core 8 GBBenchmark Test Server192.168.1
://192.168.80.10Validation successful(Note that the default content of the Web page is:/usr/local/httpd/htdocs/index.html)The third part constructs the port-based virtual hostOne: Edit the HTTP master configuration file[Email protected] ~]# vi/etc/httpd.confInclude conf/conf.d/*.conf//new line to include child profilesSave exitTwo: Create a virtual directory configuration file[[email protected] ~]# cd/usr/local/httpd/conf///Enter HTTPD installation di
, we can start with the first step, that is, the collection of log dataWe know that most Web servers have their own log records, such as Apache after the installation of a logs directory, which has its log files, in general, it has its own format, such as:1 The IP address (I
on the actual Server:
LogFile/usr/local/apache/logs/access_log
Set the location of the www access log file
OutputDir/usr/local/apache/htdocs/usage
Set the web Access statistics output directory
HistoryName webalizer. hist
Incremental yes
HostName www.test.com
PageType htm * PageType cgiPageType phtmlPageType php3PageT
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.