Apache Detailed Introduction-[Apache v2.4.10 for Windows]

Source: Internet
Author: User
Tags http authentication

Detailed Introduction-[Apache v2.4.10 for Windows] Download: http://down.admin5.com/fuwuqi/Apache_Windows.html

Apache is the world's most used Web server software. It can run on almost all widely used computer platforms and is the most popular Web server-side software because of its widespread use across platforms and security. Apache, meanwhile, is a tribe of North American Indians called Apache, in the southwestern part of the United States. is also the name of a foundation, an armed helicopter and so on.

Apacheweb Server Software has the following features:

Support for the latest http/1.1 communication protocols

Have a simple and powerful file-based configuration process

Support for Universal Gateway Interface

Support for IP-based and domain-based virtual hosts

Support for HTTP authentication in multiple ways

Integrated Perl processing Module

Integrated Proxy Server Module

Supports real-time monitoring of server status and custom server logs

Support for server-side include directives (SSI)

Secure Socket Layer (SSL) support

Provides tracking of user session processes

Support FastCGI

Javaservlets can be supported through third-party modules

If you are ready to choose a Web server, there is no doubt that Apache is your best choice.

installation configuration Apache

Unzip the downloaded installation package: Httpd-win32-src.zip put it in its own installation directory (my directory d:apacheapache24)

Let's Open the httpd.conf (d:apacheapache24confhttp.conf) configuration file to modify it--use Notepad to open the line (a backup copy is recommended, this file is the main configuration file, the error can be retrieved)

1.To modify the root path of ServerRoot Apache:

Ctrl+f find "serverroot" C:/apache24 "" Change to-->"serverroot" D:/apache/apache24 ""

2.Modify ServerName your host name:

CTRL +

F find "#ServerName www.example.com:80" to remove the previous #, which is required when launching Apache from the command line.

3.Modify DocumentRoot Apache access to the Home folder directory, which is the location of PHP, HTML code files. Apache default path is under Htdocs (D:apacheapache24htdocs), there will be a simple entry file index.html. This path can be modified on its own, and I will configure it in my own new folder, www (d:apachewww).

DocumentRoot "C:/apache24/htdocs"

<directory "C:/apache24/htdocs" >

Change to =

DocumentRoot "D:/apache/www"

<directory "D:/apache/www" >

4.Modify the Portal file configuration: DirectoryIndex generally we use index.php, index.html, and index.htm as portals for Web projects. Apache Default portal only index.html need to add the other two support, of course, the settings of this portal file can be increased or decreased according to their own needs, if the requirements are more stringent can only write a index.php, so that the entry in the project can only be index.php

<ifmodule dir_module>

DirectoryIndex index.html

</IfModule>

Change to =

<ifmodule dir_module>

DirectoryIndex index.html index.php index.htm

</IfModule>

5.To set the Serverscript directory:

scriptalias/cgi-bin/"c:/apache24/cgi-bin/" to = = scriptalias/cgi-bin/"D:/apache/apache24/cgi-bin"

<directory "C:/apache24/cgi-bin" >

AllowOverride None

Options None

Require all granted

</Directory>

Switch

<directory "D:/apache/apache24/cgi-bin" >

AllowOverride None

Options None

Require all granted

</Directory>

Launch Apache

Start---Run, enter cmd, and open a command prompt. Then go into the D:apacheapache24bin directory and run httpd

Test whether the configuration is normal, enter http://127.0.0.1 in the address bar, I am locally configured, enter this address, or enter the local private network address.

Remove Apache Program

You can simply delete the file directory or change it to a different directory.

Apache detailed Description-[Apache v2.4.10 for Windows]

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.