Category Archives: amazon-route53

Route 53 Adding Subdomain

My client's domain is being managed at Route 53 of AWS, and it works okay. Now I want to install Mautic to a subdomain, but I can't get it to work.

I already tried creating a record set with subdomain, mautic.seleqtive.com, and pointed it to the IP address and also tried making it an alias of the main domain, but the said subdomain still can't be reached. I recently tried the solution from this post but it just doesn't work. Anything else that I may be missing?

enter image description here

Note that I already created a vhost for mautic.seleqtive.com and it is enabled.

How to host multiple domains and subdomains on single AWS EC2 instance

I am trying to setup 2 domains (domain1.com and domain2.com) with a few subdomains (app.domain1.com) in AWS and run them on single instance (Amazon Linux, PHP, MySQL).

I have setup 3 hosted zones in AWS Route53 with following configurations.

Hosted zone 1:
domain1.com
Type A
52.108.XX.YY

Hosted Zone 2
domain2.com
Type A
52.108.XX.YY

Hosted Zone 3
app.domain1.com
Type A
52.108.XX.YY

Additionally, I have added following code to http.conf file in VirtualHost tag.

<VirtualHost *:80>   
     ServerName domain1.com   
     DocumentRoot "/var/www/html/domain1"   
     ErrorLog "logs/domain1-error_log"  
     CustomLog "logs/domain1-access_log" common  
     </VirtualHost>

     <VirtualHost *:80>   
     ServerName domain2.com   
     DocumentRoot "/var/www/html/domain2"  
     ErrorLog "logs/domain2-error_log"  
     CustomLog "logs/domain2-access_log" common  
     </VirtualHost>

     <VirtualHost *:80>  
     ServerName app.domain1.com   
     DocumentRoot "/var/www/html/app"  
     ErrorLog "logs/app.domain1-error_log"  
     CustomLog "logs/app.domain1-access_log" common  
     </VirtualHost>

However, only domain1.com and domain2.com are getting resolved. When I visit app.domain1.com, it gives me a "can't find server" error. Please help how to setup the subdomain - is there problem in Hosted Zone setup or httpd.conf?

Hosting multiple websites on AWS using route 53 and one instance

I have two domains on the same instance.

I've already configured the httpd.conf as follow:

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dropcash.com.br
DocumentRoot "/var/www/html/dropcash.com.br"
ErrorLog "logs/dropcash.com.br-error_log"
CustomLog "logs/dropcash.com.br-access_log" common
</VirtualHost>

<VirtualHost *:80>
ServerName descontos.top
ServerAdmin [email protected]
DocumentRoot "/var/www/html/descontos.top"
ErrorLog "logs/descontos.top-error_log"
CustomLog "logs/descontos.top-access_log" common
</VirtualHost>

The configuration on Route 53 is:

First domain

NAME -- Type - Value

dropcash.com.br -- A - ip(elastic ip ec2)

dropcash.com.br -- NS - Values

dropcash.com.br -- SOA - VALUES

www.dropcash.com.br -- A - sameip(elastic ip ec2)

Second domain

NAME -- Type - Value

descontos.top -- A - sameip(elastic ip ec2)

descontos.top -- NS - Values

descontos.top -- SOA - VALUES

www.descontos.top -- A - sameip(elastic ip ec2)

When I try to access the descontos.top, it works. However when I put www.descontos.top, it goes to dropcash.com.br

Why is that happening? How can I fix it?

Thanks a lot!

Creating Subdomains on Amazon EC2 & Route53

I feel like this should be infinitely easier than it is, but here we are in 2016 and Apache still makes configuration arcane. What I want is to simply host a sub-domain in a different directory than the main site. Here is more or less what I have now:

# Start of httpd.conf file
# Some crap
# Some <Directory> crap (this should be clearer from Apache)
#

<VirtualHost *:80>
  DocumentRoot "/var/www/html/mainsite"
  ServerName www.mycomp.com
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/var/www/html/blog"
  ServerName blog.mycomp.com
</VirtualHost>

# End of httpd.conf file

However, when I restart httpd, only the blog.mycomp.com URL works, while the default one (www), throws a 500 server error. Both the www and blog subdomains have A records in Route53 that point to the ElasticIP, and both resolve so its not a DNS issue. The funny thing is when I remove the blog <VirtualHost>, it works fine. I've narrowed it down to the DocumentRoot line, but cannot figure out why I cannot get 2 (or more) subdomains serving from different folders on my server.

Can someone please explain why one domain works and the other doesn't, and what I need to do in order to fix? Thanks!

Creating Subdomains on Amazon EC2 & Route53

I feel like this should be infinitely easier than it is, but here we are in 2016 and Apache still makes configuration arcane. What I want is to simply host a sub-domain in a different directory than the main site. Here is more or less what I have now:

# Start of httpd.conf file
# Some crap
# Some <Directory> crap (this should be clearer from Apache)
#

<VirtualHost *:80>
  DocumentRoot "/var/www/html/mainsite"
  ServerName www.mycomp.com
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/var/www/html/blog"
  ServerName blog.mycomp.com
</VirtualHost>

# End of httpd.conf file

However, when I restart httpd, only the blog.mycomp.com URL works, while the default one (www), throws a 500 server error. Both the www and blog subdomains have A records in Route53 that point to the ElasticIP, and both resolve so its not a DNS issue. The funny thing is when I remove the blog <VirtualHost>, it works fine. I've narrowed it down to the DocumentRoot line, but cannot figure out why I cannot get 2 (or more) subdomains serving from different folders on my server.

Can someone please explain why one domain works and the other doesn't, and what I need to do in order to fix? Thanks!

Creating Subdomains on Amazon EC2 & Route53

I feel like this should be infinitely easier than it is, but here we are in 2016 and Apache still makes configuration arcane. What I want is to simply host a sub-domain in a different directory than the main site. Here is more or less what I have now:

# Start of httpd.conf file
# Some crap
# Some <Directory> crap (this should be clearer from Apache)
#

<VirtualHost *:80>
  DocumentRoot "/var/www/html/mainsite"
  ServerName www.mycomp.com
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/var/www/html/blog"
  ServerName blog.mycomp.com
</VirtualHost>

# End of httpd.conf file

However, when I restart httpd, only the blog.mycomp.com URL works, while the default one (www), throws a 500 server error. Both the www and blog subdomains have A records in Route53 that point to the ElasticIP, and both resolve so its not a DNS issue. The funny thing is when I remove the blog <VirtualHost>, it works fine. I've narrowed it down to the DocumentRoot line, but cannot figure out why I cannot get 2 (or more) subdomains serving from different folders on my server.

Can someone please explain why one domain works and the other doesn't, and what I need to do in order to fix? Thanks!

How to create subdomain on aws route 53

I am running Apache on an EC2 instance. I have added an A record with EC2 instance IP in route 53 and updated Name Server with registrar. DNS resolution is working for me.

I have two sites on two folders like this: www/admin and www/client.

I want to create two sub-domains for these two sites like this:

  1. admin.example.com
  2. client.example.com

I tried with a CNAME record with name: admin.exmaple.com and value example.com/admin which is not working.

I found one solution here:

The problem with this approach is that whatever I type in subdomain is redirected to root directory.

How do I create subdomains in route 53 without creating vhost in apache?

AWS Route 53 settings configurations to show my AWS EC2 wordpress blog with new domain

I’m complete new in this. Sorry I'm posting real links here, is not promotion :d

I have installed my WordPress blog on Apache server using an AWS EC2 Instances Tutorial. The blog works perfectly, but the url looks like this: http://52.17.159.243/Pando-Design/

I have an external domain that I wish to manage through AWS Route 53. I have allready create records A, NS, SOA to resole this IP 52.17.159.243 The problem is that I wish my domain www.pandodesign.com and pandodesign.com to show my wordpress blog at installed in one of the subfolder of Apache server 52.17.159.243/Pando-Design/. My domains keep showing apache test page. Wish settings to use on Route 53 to fix this?

I want to be able to use user-friendly links like panbdodesign.com/shop pandodesign.com/contactus etc.

I don't want the url to look like this 52.17.159.243/Pando-Design/shop 52.17.159.243/Pando-Design/contactus etc.

this is how my wordpress settings looks like: http://52.17.159.243/Pando-Design/wp-content/uploads/2015/12/Screenshot-2015-12-14-16.57.58.png

Any help will be appreciated. Joe

AWS Route 53 settings configurations to show my AWS EC2 wordpress blog with new domain

I’m complete new in this. Sorry I'm posting real links here, is not promotion :d

I have installed my WordPress blog on Apache server using an AWS EC2 Instances Tutorial. The blog works perfectly, but the url looks like this: http://52.17.159.243/Pando-Design/

I have an external domain that I wish to manage through AWS Route 53. I have allready create records A, NS, SOA to resole this IP 52.17.159.243 The problem is that I wish my domain www.pandodesign.com and pandodesign.com to show my wordpress blog at installed in one of the subfolder of Apache server 52.17.159.243/Pando-Design/. My domains keep showing apache test page. Wish settings to use on Route 53 to fix this?

I want to be able to use user-friendly links like panbdodesign.com/shop pandodesign.com/contactus etc.

I don't want the url to look like this 52.17.159.243/Pando-Design/shop 52.17.159.243/Pando-Design/contactus etc.

this is how my wordpress settings looks like: http://52.17.159.243/Pando-Design/wp-content/uploads/2015/12/Screenshot-2015-12-14-16.57.58.png

Any help will be appreciated. Joe