Ajenti-nginx subdomain problem.

Posted August 21, 2015 3.1k views

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:
$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

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.

Submit an Answer
2 answers

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.