How to prevent unauthorized domain forwarding?
View Single Post
) 02-07-2018, 10:06 AM
HD Community Advisor
Join Date: Jan 2011
Company: UnixGuru Hosting
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='http://www.quackquack.in'" />
This does not require .htaccess rules.
with SSD Disks,
UnixGuru: Accounts with 1-20 CPU Cores, 2-40GB RAM. Why use a VPS?
█ Choose from
View Public Profile
Visit ughosting's homepage!
Find More Posts by ughosting