Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: non-www to www only

$
0
0
NginxModule Wrote:
-------------------------------------------------------
> Hi Ookma-Kyi,
>
> i think, this question is well known by Google. One of the first
> results is:
> https://www.digitalocean.com/community/questions/nginx-https-redirect-
> www-to-non-www
>
> You should find the answer with this.

This isn't working for me. The error I get is:
Nginx: [emerg] "server" directive is not allowed here in /etc/nginx/sites-available/ookma-kyi.tech:1

Config: https://pastebin.com/8Hme7eL1

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>