Ajenti-nginx subdomain problem.

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 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, 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 $TTL 1800 IN SOA 1440136052 10800 3600 604800 1800 1800 IN NS 1800 IN NS 1800 IN NS 1800 IN A 1800 IN A 1800 IN CNAME 1800 IN MX 1 1800 IN MX 5 1800 IN MX 5 1800 IN MX 10 1800 IN MX 10 1800 IN A

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Okay, and where can i create block files? Because the public iles for the nginx is /srv/domain.

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.