Welcome! Log In Create A New Profile

Advanced

Re: Nginx mass dynamic virtual hosts like apache?

November 20, 2011 04:42AM
Given I use this method for sub-domains

map $http_host $subdir {
hostnames;
default "default";
.foo.bar.com "foo";
.baz.bar.com "baz";
}

Is there a method to redirect any requests for sub-domains which do not exist (404s) to a custom html/php page?
Subject Author Posted

Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 05:25PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 05:56PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 07:17PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 07:41PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 07:34PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 07:58PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 20, 2011 04:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
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