Detailed explanation of the pitfalls of Apache domain name configuration

Detailed explanation of the pitfalls of Apache domain name configuration

I have never used apache. After I started working, I have always used nginx (not operation and maintenance). Recently, a small project of a friend of mine had some problems. I came into contact with apache.

First, configure the domain name and listen to port 889

Step 2: Restart Apache

/www/server/apache/bin/apachectl restart

The third step is to access it with an external browser.

Step 4. Identify the cause

1. Access the server locally using curl localhost:889, and the connection is refused

2. Check the port usage lsof -i:889

3. Query the monitoring netstat -tnl.

Monitoring is normal

4. I thought that the server port might not be open, so I used firewall-cmd --list-ports to check the open ports.

No port 889

5. Take centos7 opening port 889 as an example:

Adding Ports

firewall-cmd --zone=public --add-port=889/tcp --permanent (--permanent takes effect permanently, and will become invalid after restart without this parameter)

Refresh Rules

firewall-cmd --reload

View the specified port

firewall-cmd --zone=public --query-port=8080/tcp

Delete the specified port

firewall-cmd --zone=public --remove-port=8080/tcp --permanent

View all open ports

firewall-cmd --list-ports

6. In the end, it still doesn't work, because on Alibaba Cloud, the dedicated network limits the port, so you have to set it up

If you have a friend like me who is new to this problem, you can deal with it like this

This is the end of this article about the pitfalls of Apache domain name configuration. For more relevant content about Apache domain name configuration, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to implement web stress testing through Apache Bench
  • How to install apachebench separately in CentOS environment
  • Spring Cloud integrates Apache-SkyWalking to implement link tracking
  • Apache Shrio security framework implementation principle and example explanation
  • Detailed description and usage examples of Apache Commons tool classes in Java's commonly used class library
  • Tutorial on installing Apache 2.4.41 on Windows 10
  • Apache Bench stress testing tool implementation principle and usage analysis

<<:  Solve the problem that element edit form el-radio cannot be selected after echoing

>>:  Detailed steps to configure my.ini for mysql5.7 and above

Recommend

Summary of uncommon js operation operators

Table of contents 2. Comma operator 3. JavaScript...

Six inheritance methods in JS and their advantages and disadvantages

Table of contents Preface Prototype chain inherit...

Five guidelines to help you write maintainable CSS code

1. Add a comment block at the beginning of the sty...

Detailed steps for deploying Microsoft Sql Server with Docker

Table of contents 1 Background 2 Create a contain...

Introduction to Linux File Compression and Packaging

1. Introduction to compression and packaging Comm...

MySQL Server IO 100% Analysis and Optimization Solution

Preface During the stress test, if the most direc...

CentOS uses local yum source to build LAMP environment graphic tutorial

This article describes how to use the local yum s...

Hover zoom effect made with CSS3

Result:Implementation code: html <link href=&#...

What are the advantages of using B+ tree index in MySQL?

Before understanding this problem, let's firs...

A complete guide to the Docker command line (18 things you have to know)

Preface A Docker image consists of a Dockerfile a...

vue-cropper component realizes image cutting and uploading

This article shares the specific code of the vue-...

Docker+nacos+seata1.3.0 installation and usage configuration tutorial

I spent a day on it before this. Although Seata i...

VUE implements a Flappy Bird game sample code

Flappy Bird is a very simple little game that eve...

JavaScript Snake Implementation Code

This article example shares the specific code of ...