Redirect non existable subdomains
August 29, 2016 02:42PM
Hello all,

I've deployed Django with nginx and gunicorn. When someone visits a subdomain that do not exist they get internal server error. How can I go around this and redirect the non existable sub to the main domain?

Thanks in advance!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready