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

What is the default web service port number in apache

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

Share

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

This article will explain in detail which is the default web service port number in apache. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

In the WEB SERVER world, whether it is Microsoft's IIS or the world's number one Apache, their default web service port number is 80 after installation.

After Apache is installed, there will be a text document like httpd.conf in the conf folder under its installation directory, which is the configuration file of Apache and is used to direct the operation of Apache. Of course, the default web service port number of Apache is configured (modified) in this file.

To modify this file, be sure to open it first, double-click it directly, then press the Ctrl+F key combination on the keyboard at the same time, and type Listen 80 in the pop-up find dialog box:

In the "Listen 80" string found (only this place), change 80 to 8000 or 8080, in short, as long as it is your favorite number (the knowledge about the port number is not the scope of this article, go to understand it yourself, the port can not be misused at will).

At the top of "Listen 80" there is a string of "# Listen 12.34.56.78 Listen 80". The 80 here does not have to change with the 80 in "Listen 80", but it can be changed or not. This is just an example.

At the end of the above operation, press the Ctrl+S key combination on the keyboard to save, and then close to complete the modification of the Apache default web service port number. Be sure to stop (STOP) the Apache service once and then start (START) to make the changes take effect.

Note, however, that if you change the default port number (if you change Listen 80 to Listen 8080)

Then you will not be able to open the web page on the Apache server through http://localhost or http://127.0.0.1. You must add a colon + port number after the address, such as http://localhost:8080 or http://127.0.0.1:8080, in order to access the web page located in the Apache server.

On the default web service port number in apache which is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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