It turns out that Apache needs to be registered with the Linux service!Registering Apache to Linux servicesAfter installing Apache in source code mode under Linux, booting off Apache can be accomplished by the following command:/usr/local/apache/bin/apachectl start | stop | restartIf you want to include httpd in a system-initiated service, you can copy the above apachectl files directly into/ETC/RC.D/INIT.D, and then add the links to the appropriate
First, Apache overviewApache is the name of a foundation, he developed the HTTPD program, and later because httpd used more people, we are accustomed to use Apache to refer to the HTTPD program.Apache has many versions of the popular 2.2, 2.4, the latest is 2.4.9ga.Apache uses a and PHP, MySQL, Apr and so on to match the problem, generally have the following seve
First, configure the anti-theft chainThrough the way of anti-theft chain, can be set to restrict the third-party site by reference to obtain the image on the server, data, etc., if you want to obtain the site's picture data, only through the site access to obtain, this also effectively reduce the resources of the server.What is Referer?Referer is part of the header of the HTTP packet, and when the browser sends a request to the server, it takes Referer, which tells the browser what page link the
First, user authenticationThe user authentication function is when the user visits the website, needs to enter the user name password to be able to access. Some of the better total site and site backstage will be added user authentication, to ensure security.Example: Below the zlinux.com site to do a full-site user authentication:Step 1: Edit the virtual host configuration file[[emailprotected] ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
1. httpd start, stop, and restartStart:Apachectl–f $PATH _to_conf/httpd.confStop and restartApachectl–k stop/restart/graceful-stop/gracefulwhere graceful-stop and graceful will process the request in the current process, instead of shutting down and discarding all connections.2. Configuration Item ExplanationIf a specific parameter is given when the httpd is started, it takes effect. For example:
If the httpd command uses the-f option, you can directly obtain the configuration file directory. If the httpd command does not use the-f option, for example, Step 1: Find the apache startup command:
ps -ef|grep httpdroot 10575 1 0 19:45 ? 00:00:03 /usr/sbin/httpd -k startmyuser 15356 2982 0 Jan19 ? 00:00:00 /home/apache/bin/
/wKioL1Y43miRxTNqAACi6jsm1Ro530.jpg "title=" 13.png "alt=" Wkiol1y43mirxtnqaaci6jsm1ro530.jpg "/>You can also customize The Value component implements access control. such as:Note:AppBase: Specifies the root directory when Tomcat reads a programDocBase: Specifies the root directory of an application, which can be specified as rootand put program files directly in this directoryPath : Specifies the URL address at which to access . and docBase are relative paths, similar to the paths defined in
Lab Environment:1.VMware Virtual Machine2.linux Sub-Machine 3 units3. Local test machineExperimental Purpose:The fastcgi mode allows dynamic language to be separated from static, and when the HTTP server encounters a dynamic program, it can be delivered directly to the fastcgi process to execute, and the resulting results are returned to the browser. This approach allows the HTTP server to handle static requests exclusively or return the results of the dynamic script server to the client, which
Apache InstallationApache is a foundation name, HTTPD is the package we need to install, httpd early name is Apache;Apache official website www.apache.org
2.2 Source Bundle: http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.34.tar.gz2.4 Source Bundle: http://mirrors.cnnic.cn/apache/
1. Package CompilationPackage compilation installation: (requires gcc, make Tools)Recommended installation package Group: development toolsApplication-version-release.src.rpm–> after installation, makeUse the Rpmbuild command to make the RPM package in binary format, and then installSource Code –> preprocessing –> compilation (GCC) –> assembly –> Link –> executionSource Code Organization Format:Multiple files: between the code in the file, there is li
Httpd-2.4 Characteristics
1. Overview of httpd-2.4 features
Reference official website information: http://httpd.apache.org/docs/2.4/new_features_2_4.html
1. httpd-2.4 official announcement of new features (all)
(1) MPM supports DSO operation and is loaded as needed in the form of modules;
(2) event-driven support. The production environment of the eventMPM modul
HTTPD load Balancing Tomcat implements the session sticky and session cluster architecture as follows:650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/88/6C/wKioL1f3ajTxPkM9AADT2sKTejY987.png "title=" Session frame composition. png "alt=" Wkiol1f3ajtxpkm9aadt2sktejy987.png "/>The implementation process is as follows:Configuring the Tomcat Service (TOMCAT1\TOMCAT2)(1) Installing the JDK#rpm-ivhjdk-7u9-linux-x64.rpm--files generated after inst
Author: ytfeiDate: 18:28:26Original article. For more information, see the source! Http://blog.romebuilder.com/2011/01/273/
There are many related articles on the Internet about the concept of reverse proxy. This is an article in Baidu: http://baike.baidu.com/view/1165595.htm.
Jetty can communicate with httpd through HTTP or AJP. jetty officially recommends using HTTP for communication. The following are jetty-7.2.2, APACHE-
Example of ansible compiling httpd playbook, ansibleplaybook
The following is the content of the playbook. The process is as follows:
1. First, a total of 3 .tar.gz files are downloaded in the local directory of apr, apr-util, and httpd.
2. decompress the three files.
3. Install the pcre and pcre-devel dependency packages.
4. Compile and install apr.
5. Compile and install apr-util.
6. Compile and install
When we deploy LAMP, we usually install the httpd service and use the httpd. replace the default httpd with conf. conf may encounter some uncompiled modules when the httpd service is restarted. The first reaction is to re-compile the modules, but apache supports dynamic extension modules. That is to say, you do not nee
The following is the content of playbook. Its processing flow is:1. First download APR,APR-UTIL,HTTPD a total of 3. tar.gz files locally.2. Unzip the 3 files.3. Install the Pcre and Pcre-devel dependent packages.4. Compile and install Apr5. Compile and install Apr-util6. Compile and install httpd--- -hosts:all tasks:-Name:download apr,apr-util,httpd Get_ur
process1. Establish a connection: The client makes an HTTP request to establish a TCP connection with the server, or succeeds or fails2. Receive a request: The server receives a request for a resource in the client request method3, processing requests: The server to the request message parsing, according to the request method, resources, first and other information processingCommon HTTP Request methods: GET, POST, HEAD, PUT, PUSH, OPTIONS, DELETE, TRACE4. Access resources: Servers request stati
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.