w_ebua
Last Updated: February 25, 2016
·
278
· gregmolnar
5319381fac0e775e5b2168650aae1e01

Require www on Nginx

Without hardcoding the actual domain:

if ($host !~* ^www.(.)){
rewrite ^/(.
) http://www.$host/$1;
}

Say Thanks
Respond