APACHE (3)

Source: Internet
Author: User

3.21 Port command
Syntax: Port Number
Default: Port 80
Used in: server config
Status: Core
This Port command sets the network Port number of the server listener. Numbers are 0 to 65535
A number; some port numbers (especially less than 1024) are reserved for special agreements. See
The list of some ports defined in/etc/services. The standard http protocol uses port 80.
Port 80 is a special Port of Unix's. All port numbers less than 1024 are retained
For example, general users (non-root) cannot use them; replace
They can use a higher port number.
To use port 80, you must start the server with the root account. After connecting to the port, accept
Before a request, Apache switches to a User with a lower permission set by the User command.
Identity.
If you cannot use port 80, select any other unused port. Non-root use
You must select a port number higher than 1023, such as 8000.
Security: If you start the server as root, do not set the User as root.
If you process connections as root, your platform may be exposed to attacks.
3.22 require command
Syntax: require project name Project project...
Used for: directory,. htaccess
Requirement: AuthConfig
Status: Core
This command selects the user who can access the directory after verification. The syntax is as follows:
. Require user identification code...
Only indicated users can access this directory.
. Require group name...
Only users in the specified group can access this directory.
. Require valid-user
All valid users can access this directory.
If require appears in a segment, it limits the access
Otherwise, it limits all access methods. For example:
AuthType Basic
AuthName somedomain
AuthUserFile/web/users
AuthGroupFile/web/group
Limit <get post>
Require group admin
Require must use commands such as AuthName and AuthType, and
AuthUserFile and AuthGroupFile commands (used to define users and groups)
In order to operate properly.
3.23 ResourceConfig command
Syntax: ResourceConfig file name
Default: ResourceConfig conf/srm. conf
Used for: server config, virtual host
Status: Core
After the server reads the httpd. conf file, it will continue to read the file to get more

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.