I bought an ECS, in Aliyun but did not apply for a domain name. Can apache be directly set to ip access instead of domain name access? if so, how to set it?
I bought an ECS, in Aliyun but did not apply for a domain name. Can apache be directly set to ip access instead of domain name access? if so, how to set it?
you can access
after installing apache without any special settings. If you don't configure a domain name, you can access
Aliyun's ECS, when you enter the user's CVM page, each CVM will have two IP, a public network IP, and a private network IP
public network IP, assuming 134.13.134.13
private network IP, assuming 10.0.1.10
then you only need to install apache or Nginx in the Linux to
Ubuntu use apt install apache2
centos use yum install httpd
Note that security groups need to be set in Aliyun, and the development of 80 (http) and 443 (https) ports can be accessed from outside
. Afteris finished, you can use the public network IP (134.13.134.13) to access the browser. Use http://134.13.134.13, and you will see the welcome page of apache
.can be accessed directly through IP