Apache Server Configuration

Source: Internet
Author: User

Apacheserver is not used in our lives.

Today give you a look at the configuration of the Apache server under Mac

This is one of the necessary skills for the program, assuming that we are using the company's server in the company development

Upload your own code to download updates and make data requests and data access questions

But when we got home, the company's server couldn't be used. The workaround is very easy

That's our own. Configure a local server on the computer. Only if the LAN is in the same network segment

Computers are able to access resources. It's very helpful for the office.

Let's start by introducing:

Apache (Webserver)

Apache is the first webserver software in the world to use. It is able to perform on almost all the widely used computer platforms. Because of its cross-platform and security is widely used, is one of the most popular webserver-end software. It is fast, reliable, and can be compiled into the server by a simple API extension, such as the Perl/python interpreter.

Apache, the same time, is a tribe of North American Indians. Called the Apache tribe, in the southwest of the United States. is also the name of a foundation, an armed helicopter and so on.

Specific introduction

Apache HTTP Server (Apache) is an open source Web server for the Apache Software Foundation that can be executed in most computer operating systems because of its multi-platform and security-wide use is one of the most popular webserver-side software. It is fast, reliable, and can be compiled into the server by a simple API extension, such as the Perl/python interpreter. [2]
Apache Httpserver is a modular server that originates from Ncsahttpdserver. After several changes. Become the world's first webserver software.
It is able to perform on almost all the widely used computer platforms.
Apache originates from Ncsahttpdserver. After many changes, it has become one of the most popular webserver software in the world. Apache is taken from the "a patchy server" pronunciation, meaning is full of patches of the server, because it is free software, so it is constantly someone to develop new features, new features, change the original flaw.

Apache is characterized by simple, fast, stable performance and can be used as a proxy server.


Originally it was used only for small or experimental internet networks, and later gradually expanded to a variety of UNIX systems, especially Linux support is quite perfect. Apache has a variety of products that can support SSL technology. Support for multiple virtual hosts. Apache is a process-based structure that consumes a lot of other system expenses than threads. is less suitable for multiprocessor environments, so when you scale up an Apache web site, you typically add servers or expand cluster nodes instead of adding processors.

Until now, Apache is still the most used webserver in the world. Market share of about 60%.

The world's many famous sites such as Amazon, Yahoo!, W3 Consortium, Financial Times, etc. are the product of Apache, its success lies mainly in its open source, an open development team, Support cross-platform applications (able to perform on nearly all UNIX, Windows, Linux system platforms) and its portability.
The birth of Apache is very dramatic.

When the Ncsawwwserver project stops. People who use Ncsawwwserver start swapping their patches for the server, and they are very quick to recognize that it is necessary to set up a forum to manage these patches. In this way, the Apache group was born, and later the group created Apache on the basis of NCSA.

Next, let us explain the configuration

First, we open the terminal (Mac is originated from UNIX system)

We run the following command

B. Enter an IP address on the browser 127.0.0.1 This is a loopback address for testing.

Ability to test if local network card is normal

Everyone's computer will show that my computer has changed the path in the configuration file so I can't see

Can we think about where this it Works is put?

We can go to this directory to see the following HTML file to open a look at the following



Third, next into the configuration file configuration

We enter the configuration file

Execute the following command sudo is performed with administrator privileges

You must have the highest permissions to run these commands

Then execute the following command:

We want to change the folder: Create a new one, usually in/users/ms/

Create a new Folder yourself

Iv. restarting the server

Last step: Re-enter 127.0.0.1 in the browser

Test it.

We can find the magic


Apache Server Configuration

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.