View Single Post

  Post #6 (permalink)   02-07-2018, 10:06 AM
HD Community Advisor
ughosting's Avatar
Join Date: Jan 2011
Location: London
Posts: 634

Status: ughosting is offline
It looks to me that you must be using a single site environment.

If you configure your nginx with virtual hosts put your domain in the correct virtual so that:-

1. your site is shown when you use your domain to resolve to your IP

2. Any other domain resolving to the same IP get another site with a standard index.html page
In that page place, inside the <head> and </head>

<meta http-equiv="refresh" content="0;URL=''" />

This does not require .htaccess rules.
DDoS Protected, LiteSpeed + LiteMage on CloudLinux with SSD Disks, R1Soft, Softaculous, SIteBuilder, BitNinja, LetsEncypt & Patchman
UnixGuru: Accounts with 1-20 CPU Cores, 2-40GB RAM. Why use a VPS?
█ Choose from Shared, Reseller and Elastic-Sites Hosting