简体   繁体   中英

Configure apache in EC2 Instance

I added an instance EC2 (ubuntu oneiric) in amazon web services, I added a load balancer for that instance and in add a subdomain in netfirms.com. in the apache of that instance I added and enabled a site with this configuration:

<VirtualHost *:80>
ServerName indicadores.innovacioncolombiaaprende.net
DocumentRoot /var/www/ties/
</VirtualHost>

But the domain indicadores.innovacioncolombiaaprende.net doesn't show anything, what part I'm missing?

Do you have a DNS entry setup for that sub-domain? That's my first guess at what could be happening. Configuring apache on EC2 isn't any different than configuring it on a physical server. Sub-domains don't magically appear on the net because of apache configs - they are distinct host names that must be explicitly pointed somewhere via DNS.

When I go to: http://innovacioncolombiaaprende.net (not the sub-domain)

I get:

It works!11

This is the default web page for this server.

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

More explanation of DNS propagation, how it works, and why it takes time:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM