Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Explain the pitfalls of the apache configuration domain name in detail

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

I haven't used apache. After I came out to work, it was always nginx (not operation and maintenance). Recently, there was something wrong with a small project of a friend. Contact with apache.

First。 Configure the domain name to listen on port 889

Step 2, restart apache

/ www/server/apache/bin/apachectl restart

The third step, access to the external web browser, can not be accessed.

Step four. Investigate the cause

1. Local curl localhost:889 access on the server, connection denied

two。 Check the usage of the port lsof-iRanger 889

3. Inquired about the listening netstat-tnl.

Monitoring is normal.

4. Think of the possibility that the server port is not open, use firewall-cmd-- list-ports to view the open port

There is no port 889

5. Take centos7 opening port 889 as an example:

Add Port

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

Refresh rules

Firewall-cmd-reload

View designated port

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

Delete specified port

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

View all ports that have been opened

Firewall-cmd-list-ports

6. In the end, it doesn't work, because on Aliyun, the private network, the port is limited, and you have to set it up.

If a rookie friend like me encounters this problem, we can deal with it like this.

This is the end of this article on the detailed explanation of apache configuration domain name pit, more relevant apache configuration domain name content please search previous articles or continue to browse the following related articles hope that you will support more in the future!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report