Report this

What is the reason for this report?

adding www to my domain at nginx server

Posted on January 21, 2014
FMCB

By FMCB

Hi.

I have been trying to add www to my domain like this:

from this:

http://domain.com

to this:

http://www.domain.com

I was following this article here: https://www.digitalocean.com/community/articles/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx

but ended up with no result. I believe it is something related to either ect/nginx/nginx.config or my domain file in sites-available…

There is one question I also want to ask, if the domain re-directed from http://domain.com to http://www.domain.com, would that be considered an extra http request. is there a way how to avoid extra requests?

any idea how that can go correct??

Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.