Install and modify Apache2 port in UBuntu

Source: Internet
Author: User
Tags fully qualified domain name icinga
Install and modify the Apache2 port in UBuntu because the local machine has Nginx, so there is no need to install Apache2. However, to learn how to use icinga today, let's take a look at apache2. now we are familiar with icinga and use Nginx to replace Apache2. The installation is simple: [plain] apt-getins... UBuntu installs and modifies the Apache2 port because the local machine has Nginx, so there is no need to install Apache2. However, to learn how to use icinga today, let's take a look at apache2. now we are familiar with icinga and use Nginx to replace Apache2. The installation is simple: [plain] apt-get install apache2 and then Auto Start fails, because Nginx occupies port 80 and port 443. Find the/etc/apache2 Directory through whereis apache2 and open ports under the Directory. in the conf file, change all port 80 to Port 81,443 to Port 444. then, read the file comment and say that the/etc/apache2/sites-enabled/000-default file is required. after opening the file, [plain] Modify it to 81, and then you will see the index.html file [plain] under/var/www in the root directory.It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Restart apache2service apache2 restart [plain] * Restarting web server apache2 apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName... waiting apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [OK] can open the/etc/apache2/apache2.conf file and add the following sentence: [plain] The error disappears after ServerName localhost is restarted again. Open the webpage and enter localhost: 81address. the index.html page is displayed.
Related Article

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.