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

September 12, 2016 141 views
WordPress Nginx DigitalOcean Ubuntu


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?

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!

Have another answer? Share your knowledge.