Deny all + Custom Error page
black.fledermaus at arcor.de
Fri Jun 6 07:48:52 UTC 2014
I try to block wildcard sub domains as follows:
# block wildcard
server_name ~^(.*)\.example\.com$ ;
error_page 403 /index.html;
I always get the default "403 Forbidden" site of nginx.
When "deny all" is removed it work as expected.
Can anybody explain?
And does anybody know a workaround?
More information about the nginx