Welcome! Log In Create A New Profile

Advanced

Re: Redirect arbitrary sub-domains to custom 404 when wild card A record is set?

Francis Daly
November 20, 2011 05:28PM
On Sun, Nov 20, 2011 at 03:59:13PM -0500, anagio wrote:

Hi there,

> Is there a way to capture all requests to sub-domains which do not have
> a virtual host setup, and redirect to a custom 404 page?

That's called the default server.

http://nginx.org/en/docs/http/request_processing.html

In that server, you can redirect or respond any way you choose.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect arbitrary sub-domains to custom 404 when wild card A record is set?

anagio November 20, 2011 03:59PM

Re: Redirect arbitrary sub-domains to custom 404 when wild card A record is set?

Francis Daly November 20, 2011 05:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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