How to set up a Ubuntu Server VM

Source: Internet
Author: User

Previously, I set up a ubuntu VM to fully look at the mood. Today, let's look at the official suggestions.

The code is as follows: Copy code

1. copy the default config sample in folder sites-available
Sudo cp/etc/apache2/sites-available/default/etc/apache2/sites-available/mynewsite
2. edit your config file mynewsite
3. ENABLE YOUR VIRTUALHOST CONFIG

Sudo a2ensite mynewsite
Sudo service apache2 restart

In this way, your configuration will create a link file in the sites-enabled folder. You can use the following command to disable the VM without changing the configuration file.

The code is as follows: Copy code

Sudo a2dissite mynewsite
Sudo service apache2 restart


The debain series has a good software structure, which is similar to my taste :)

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.