How do I direct my servers hostname(FQDN) to somewhere besides my single wordpress website with nginx?

Posted September 12, 2016 2k views


I am new to server administrating and was wondering if there is a way to change the content shown for my hostname (ex. to something that is different from (ex.

I have finished 301 redirecting the www sub-domains but still do not quite understand what to do with the hostname sub-domain.

Will google view and mirroring the same content as duplicate content?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Google don’t have a way to notice unless you’re linking to it from somewhere. But you can use a robots.txt file to be sure.

You can create a Nginx server block for and have it’s own content there. Or you can 301 it to your main website. That won’t be a problem

  • I can’t express how thankful I am for your answer Tharindu Kumara!

    I’ve been searching all over the web for this and wasn’t able to find any information regarding the topic…

    I think I am going to go with the robots.txt and 301 redirect configuration!