Extranet access to websites built with azure virtual machines

Source: Internet
Author: User

1. ubuntu+apache+php Environment (MySQL steps are omitted here)

Setting up the above development environment on Azure and building it on a local PC is the same step, see here for details .

2, from the external network access

Note that the premise of this step is that in the first section, you can already access your website in the virtual machine, if you have no graphical interface on the virtual machine on Azure, you can refer to here , Use a command-line browser to navigate through your helloworld.php to verify that the environment is building successfully.

Let's talk about what to set up from the extranet:

2.1 Select the virtual machine where the site is located, select the endpoint panel, if there is no 80 port, then add a 80 port endpoint (set to TCP type, the name is arbitrary) Note that the port number here and in the virtual machine in the Apache configuration of the port number consistent, My Ubuntu apache2 configuration is defined in/etc/apache2/ports.conf as 80, so fill in 80 ports here.


2.2 Return to the dashboard panel of the virtual machine where the site is located, find the DNS name, now if everything is set to success, then in the external network conditions, in the browser enter this DNS name should appear in your website homepage (this varies from person to person, the focus is still to find your documentroot, my DocumentRoot in /var/www/html This folder, under this folder there is a index.html and helloworld.php so I can access the "DNS name " from the extranet in the browser can also access " DNS name/helloworld.php")

3, Good luck!

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.