Learn about apache web server interview questions, we have the largest and most updated apache web server interview questions information on alibabacloud.com
IDC Commentary Network (idcps.com) August 04: Recently, Netcraft published global web server data. It is shown that in July, the Netcraft survey counted 996,106,380 websites worldwide, up about 2.8% last month. Among them, in the global mainstream Web server market share leaderboard, Microsoft
Bkjia.com exclusive Article] The Aapche server in Linux provides powerful access control functions. Users can choose to use configuration commands or. this document describes how to set the htaccess file.
1. Use common access control configuration commands for access control
1. configuration instructions
The configuration commands for Implementing Access Control in Apache include the following:
1) order com
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
Now the site more and more expressive, page load of JS and CSS naturally more and more. When the site page of JS and CSS too much, the browser to open the page speed will be very slow, significantly reduce the user experience. Using MOD_CONCATX, you can combine multiple files in an HTTP response message, you can effectively increase the loading speed of js/css.
The example effect is as follows:
MOD_CONCATX modules are modified on a mod_concat basis, thanks to their work.
The original Mod_co
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 upd
1. Introduction
Internet/intranet based on web technology has been widely used in recent years, Intranet is based on TCP/IP protocol, the web as the core intranet, the user through Low-cost, An Easy-to-use client browser can access the data you need on the corporate web site anytime, anywhere. The consistency of the browser client interface avoids the diversity
take precedence over the local cache.One workaround is to turn on the server push only for the first access user. The following is an example of the official Nginx, based on the Cookie to determine whether the first access.
Server{Listen443 SSL HTTP2 Default_server; Ssl_certificate SSL/certificate. PEM; Ssl_certificate_key SSL/key. PEM; Root/var/www/html; Http2_push_preload on; Location = /demo. html {
/apache2/php.iniFile root directory:/var/wwwMYSQ:Configuration stored in subdirectories:/etc/mysqlConfiguration file:/etc/mysql/my.cnfRestart MySQL command:/etc/init.d/mysql reset6. Test. info.php6-1. Prepare the file.PHP Echo Phpinfo ();? >6-2, file permissions processingchmod 777/var/www/-RNote:/var/www, is the path to the file,-R (can be optionally added.) If it is added, it has the same file permissions as the file that is recursive to the subdirectory of the file, etc.)6-3. Browser accessht
A brief introduction to the log under Apache
Apache provides a wide range of tools for recording all aspects of run-time information. For example, a conditional log, log loop, to determine the IP address and other common problems encountered. There are also a number of third-party modules and tools used to detect the state of your Apache
Requires at least three servers:Server A: Control serverServer B and Server C: actually executing the serverLoad balancing principle: Distributing requests to Server A to Server B and Server CTo modify the Apache http.conf file on Server
PHP prohibits access to an IP or IP segment
Don't say much nonsense, sir please see:
?
Prohibit an IP
$banned _ip = Array (
"127.0.0.1",
//"119.6.20.66",
"192.168.1.4"
);
if (In_array getenv ("REMOTE_ADDR"), $banned _ip))
{
die ("Your IP is prohibited from accessing!") ");
}
Prohibit an IP segment
$ban _range_low=ip2long ("119.6.20.65");
$ban _range_up=ip2long ("119.6.20.67");
$ip =ip2long ($_server["REMOTE_ADDR"]);
if ($ip > $ban _range_low $ip
Support ASP do not need redundant settings, as long as the correct installation of the IIS4 or IIS5 can be. Install PHP can choose the CGI or ISAPI mode, the specific installation can refer to the following instructions (excerpt from the PHP installation package file install.txt)
Windows nt/2000 and IIS 4 or newer and PWS 4 on NT Workstation or W2K non server editions
To install PHP in an nt/2000 Server run
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.