Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
224 stars 80 forks source link

Add json datatype and switch $server_name by $host in nginx_template. #273

Closed FreakenK closed 6 years ago

FreakenK commented 6 years ago

$server_name contains the virtualhost's domains. If multiple domains are specified, it is set to the first one. $host contains the actual domain the request came from, with fallback to the virtualhost's domains.

json content-type was missing.