How to assign subdomain to another droplet?

February 2, 2016 643 views
Server Optimization DNS Configuration Management Apache Ubuntu

So, here is my zone file:

$TTL 1800 IN SOA 1454404311 10800 3600 604800 1800 1800 IN NS 1800 IN NS 1800 IN NS 1800 IN A 1800 IN CNAME 1800 IN A

as it looks like, I want to assign to, but it shows me 403 Forbbiden access!

How can I setup my subdomain to this ip and should i config my apache?

1 comment
1 Answer

Hey there,

I don't see that this zone is currently setup as your example shows. However, everything in your example is correct as far as how DNS works. The 403 error is a web server error. You would want to confirm how you have the subdomain configured as a virtual host. This tutorial would go over that in greater detail.

Happy coding,

Jon Schwenn
Platform Support Specialist

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
Have another answer? Share your knowledge.