Ajenti-nginx subdomain problem.

August 21, 2015 803 views
Nginx DigitalOcean Ubuntu

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

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.

Have another answer? Share your knowledge.