I. Environmental descriptionThe Yum Library, the Readhat/centos system software repository, can be used to transfer warehouses stored on the network via the HTTP FTP protocol, and Yum's main function is to easily add/remove/update RPM packages, automatically resolve package dependencies, and facilitate the management of a large number of System update maintenance package issues. The Yum library can be configured with multiple repositories (Repository), Concise configuration files (/etc/yum.conf)
First, use RPM-QL httpd can view RPM package installed httpd file and its path1. Configuration file:/etc/httpd/conf/httpd.conf #主配置文件/etc/httpd/conf.d/welcome.conf #无首页所指定的链接文件2. Service script:/ETC/RC.D/INIT.D/HTTPD #服务起停脚本/ETC/SYSCONFIG/
The first step: to make sure your firewall is offNo about can be manually closed, execute commands such asStep two: Launch Apache serviceStep three: Use the command NETSTAT-NTLP to see if 80 ports are listening, and what services to listen on 80 ports, such as, listen Representative has been listening, is httpd in the monitoringFourth step: We can write a page content, try to visit, to see if our httpd serv
Just finished installing PHP7 (already installed with PHP5, two versions of the same)When you want to perform apachectl graceful, use the-t check configuration to find the following error.[[email protected] ~]#/usr/local/apache2.4/bin/apachectl start/usr/local/apache2.4/bin/apachectl:line 79:1966 Segmentation Fault $HTTPD-K $ARGVThe reason is that httpd.conf did not comment out one of the PHP loading modules, causing the
The general website uses httpd as the Web server to provide the Web page, this article mainly introduces the next several httpd commonly used configuration attribute and the configuration method, certainly the concrete application more has the concrete demand to decide.
Agent Module Configuration:
Due to the Dynamic Web page, the generation of Web pages to the basic proxy to the back-end server, typically
After compiling the Apache httpd, you can continue to add extensions
Mod_expires for sending headers, setting the expiration time for static files
Copy Code code as follows:
CD Httpd-2.2.19/modules/metadata
Sudo/usr/local/apache2/bin/apxs-i-a-c MOD_EXPIRES.C
sudo vi/usr/local/apache2/conf/httpd.conf
Expiresactive on
Fileetag None
Mod_deflate used to turn on gzip compression
Copy Co
When I httpd restart through the service, I serve the server prompt:
Starting httpd: (+) address already in use:make_sock:could don't bind to address [::]:80 (+) address already in Use:make_ Sock:could not bind to address 0.0.0.0:80 No listening sockets available, shutting down
Is that 80 ports have been used again.
Check out some places that are recommended for use:
$ sudo fuser-k-n TCP 80$ sudo/
Native IP eth0:192.168.244.150 eth0:0 192.168.244.158
1, based on the same IP different port virtualhost
Edit httpd.conf New Configuration entry
Vim/etc/httpd/conf/httpd.conf
Listen 8080
Listen 8888
In the following new
Documentroot/var/www/html/website1
Documentroot/var/www/html/website2
To create a directory:
Mkdir/var/www/html/website1
Mkdir/var/www/html/website2
echo website1 >/var/www/html/website1
echo Website2 >/var/www/htm
configuration file :/etc/httpd/conf/httpd.conf/etc/httpd/conf.d/*.conf all conf files in the CONF.D directory
Virtual Hostbased on host name :add a field to control file access permissions :Create 2 users (not system users, users who are accessing HTML)[[emailprotected]conf]#htpasswd-c/etc/ Httpd/.htpasswduser1newpassword:re-typenewpassword:ad
working with LAYER4, such as Web 80 port load Balancing, keepalived detects that 80 ports in the back-end server group are not started, and if not, it is considered invalid and rejected· When working with Layer7, according to user's settings, if the user does not match the set, it is considered invalid and rejectedThree modules:· Core: Responsible for initiating and maintaining the main process, loading and parsing of global configuration files· Health_check: Load health status check· VRRP: Imp
An explanation of Apache's httpd commandSource: Full stack developer release time: 2012-01-03 read:10965 4Httpd.exe is an Apache HTTP server program. The direct execution program can start the server's service. This article takes the Apache2.2.21 version as an example to detail the parameters and usage of the directive.Syntax format:httpd [-D name] [-D directory] [-f file][-C "directive"] [-C "directive"][-W] [-K Start|restart|stop|shutdown][-K Inst
[email protected] ~]# Yum install-y httpdClient Address RestrictionsRestrict the client by configuring order, Deny from, allow fromAllow, deny: "Deny" is first "allowed", and all explicit client addresses are rejected by default.Deny, allow: First "deny" after "allowed", by default allows all explicit client addressesUser Authorization RestrictionsThe HTTPD server supports two ways of using Digest authentication (Digest) and Basic authentication. Usin
Experiment Preparation:1, prepare three site page 650) this.width=650; "Src=" https://s4.51cto.com/oss/201710/23/ 97ca07704a38c458a355afe1743fc5ee.png "title=" 2.png "alt=" 97ca07704a38c458a355afe1743fc5ee.png "/>2. Prepare three IP addresses650) this.width=650; "src=" Https://s2.51cto.com/oss/201710/23/a44fe3cc04dcba1bff4c438d16a8bd77.png "title=" 3.png " alt= "A44fe3cc04dcba1bff4c438d16a8bd77.png"/>First, the implementation of IP-based virtual host1. Modify the configuration file for the
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.