Welcome! Log In Create A New Profile


Redirect non existable subdomains

Posted by wh4n 
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: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready