By Balla Roland
Hi all. I have a big problem. So, i want to host my website on digitalocean servers.I created a droplet and intall Ajenti control panel.Everything is okay, i created panel.ballaroland.me subdomain, it’s okay.But i want to create one other subdomain and i can’t.Added the subdomain name on the DNS menu on digitalocean, and added the subdomain option in the panel but nothing, just displayed same file with the first, ballaroland.me domain. I read something nginx block, i didn’t create this blocks because i don’t know how to do. Any idea? Zone File: $ORIGIN ballaroland.me. $TTL 1800 ballaroland.me. IN SOA ns1.digitalocean.com. hostmaster.ballaroland.me. 1440136052 10800 3600 604800 1800 ballaroland.me. 1800 IN NS ns1.digitalocean.com. ballaroland.me. 1800 IN NS ns2.digitalocean.com. ballaroland.me. 1800 IN NS ns3.digitalocean.com. panel.ballaroland.me. 1800 IN A 128.199.41.81 ballaroland.me. 1800 IN A 128.199.41.81 www.ballaroland.me. 1800 IN CNAME ballaroland.me. ballaroland.me. 1800 IN MX 1 aspmx.l.google.com. ballaroland.me. 1800 IN MX 5 alt1.aspmx.l.google.com. ballaroland.me. 1800 IN MX 5 alt2.aspmx.l.google.com. ballaroland.me. 1800 IN MX 10 alt3.aspmx.l.google.com. ballaroland.me. 1800 IN MX 10 alt4.aspmx.l.google.com. test.ballaroland.me. 1800 IN A 128.199.41.81
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In your nginx you need to create a virtual server block or file wich will handle the domain you would like to use to the proper directory. This can be done manually, but you can just create a new site inside Ajenti, and assign the domain name you want to use.
Okay, and where can i create block files? Because the public iles for the nginx is /srv/domain.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.