Httpd-2.2 and httpd-2.4 Build Secure http service based on VirtualHost
Directory:I. CentOS6 use httpd-2.2 to build httpd service based on Domain NameIi. centos7 use httpd2.4 to build httpd services based on domain names3. centos6 compile and install
Compile and install httpd and compile httpd
Compile and install httpd
1. Download the source code package from the official website.
In order to avoid illegal software, be sure to go to the official website to download http://www.apache.org
Httpd-2.4.25.tar.gz2
2. Install the development package Group
Yum groupinstall
Implementation of WEB-httpd user authentication control and https on httpd in CentOS
We can configure httpd by setting user authentication and implementing https encrypted transmission experiments. The following are the requirements of this experiment:
Lab environment:
CentOS release6.6 (Final) 1
Windows XP 1
IP Address:
172.16.31.31 www.stu31.com web Server
172
This issue is encountered when installing deployment ganglia, and the httpd version 2.2.15,centos version is 6.4.
Installation method:
After the installation is complete, start everything to display normally, but when viewing the httpd status:
Service httpd status
httpd dead but Subsys lockedTry to delete the lock:
The book on the back, although some of the previously written on the httpd-2.2 on the common configuration has become very comprehensive, but there are some configurations we can not ignore:13. Status PageLoadModule Status_module modules/mod_status.soThis is a Server Status page that allows the administrator to find and view the status through the input path on the client browser, such as the IP on my CentOS 6 is 172.16.0.210, then enter in the Addres
System centos6.0
Objective: The httpd service of two machines provides the same service and uses heartbeat to implement hot backup of httpd. to manage resources in a unified manner, the configuration must be written to both services, provides the nfs service for convenient management.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/013G33223-0.jpg "title =" Photo 1.jpg "/>
Lv1: 19
Httpd log and log rotation tool, httpd log Rotation
Directory:1.1 Error Log ErrorLog1.2 access log CustomLog1.3 log rotation: rotatelogs Tool1.4 log rotation: cronolog Tool1.5 comparison between rotatelogs and cronolog
The types of logs to be recorded include Error Log ErrorLog and access log CustomLog. Generally, the default value is used for error logs. You can change the storage path of the error logs at
Implemented using httpd-2.2 and httpd-2.4, respectively1. Establish httpd service, request:1) provide two name-based virtual host WWW1, WWW2; there are separate error logs and access logs;2) Provide status information through WWW1 's/server-status, and only allow link user access;3) WWW2 does not allow access to any host in the 192.168.1.0/24 network;2. Provide H
Four machines in this article: Centos6.0
Lv1 and lv2 are used as the httpd frontend and keepalived for high availability. A virtual vip is provided for the client to access.
Node1 and node2 use the drbd technology to implement file image storage, and Virtualize a vip to provide nfsserver_ip for httpd services, facilitating configuration and unified data management;
Application Technology;
In the afternoon when the site on AWS EC2 is inaccessible, and the IP is accessible, login to SSH and view the service Service--status-all Discover that the HTTPD service is stopped, and then try to start httpd, prompt: Starting httpd: () Permission denied:AH00058:Error retrieving PID file/var/run/httpd/httpd.pidah0005
Add new modules to httpd and add modules to httpd
Sometimes, due to special requirements, you need to add some additional modules to the installed httpd. In this case, you need to use the apxs tool in httpd-devel. To use this extension mechanism, your platform must support the DSO feature, that is, Apache
Original http://httpd.apache.org/docs/2.4/howto/reverse_proxy.htmlTranslationReverse Proxy GuideIn addition to being a "basic" Web server and providing static and dynamic content to end users, Apache httpd (and most other Web servers) can also act as a reverse proxy server, also known as a gateway server.In this case, the httpd itself does not generate or host the data, but instead obtains the content throu
An error occurs when you restart Apache:
Httpd: syntax error on line 57 of/etc/httpd. conf: cannot load/usr/local/apache2/modules/libphp5.so into server: libltdl. so.3: cannot open shared object file: no such file or directory
Cannot open shared object file"
Solution:
1. Add the name of the folder in which libltdl. so.3 is located to the/etc/lD. So. conf file!The directory where libltdl. so.3 is located is/
MPM multi-Process Processing moduleMPM is divided into three modes:1,preforkProcess model, each process processes a request, pattern: Parent Process —————— > multiple child Processes —————— > One child process processing a request2,workerThreading model, each process derives multiple threads, each thread processes a request, pattern: Parent Process —————— > multiple child processes —————— > Multiple threads are derived from each child process-------> One thread processes a request task3,eventEve
Tags: implementation mechanism originally page organizes tables based on free article content index ClustFollowing the book on SQL tuning (SQL tuning or SQL optimization) in the essentials of high-performance SQL tuning and case resolution, we talk today about one of the most important core mechanisms of SQL tuning tec
Tags: and fast speaking tuning market buffer way a completely"High-performance SQL Tuning essentials and Case Resolution" a book has been launched, many enthusiastic readers on the contents of the book and some of the specific questions raised questions, because of the numerous readers plus my daily work busy, here on the SQL tuning learning to discuss and a unif
Httpd proxy server and cache explanation, httpd proxy server
Since Apache 1.2, the proxy module has been added to the Apache source code. Unfortunately, there were many problems with the proxy module at that time, for example, incompatible with newer http specifications, no one can maintain it, or even delete it from the server. Since Apache2.0, the mod_proxy module is not only rewritten, but also divided i
Before building WordPress blog system and discuz! forum system, we need to prepare the lamp environment in CentOS.Now take CentOS 6 as an example to demonstrate its process.Lamp environment =linux+apche+mysql+phpUse Yun to install apche+mysql+php in the installed CentOS 6.7 , and enter the following command at the command line:~]# yum-y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-develAfter
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.