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-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 the/etc/apache2/sites-enabled/000-default file is required. open the file and change [plain] <VirtualHost *: 80> to 81, then, the root directory is under/var/www. the/var/www/directory shows the index.html file [plain]

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.