Welcome! Log In Create A New Profile

Advanced

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: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready