uing
In my config.php I set:
I set /etc/nginx/site-enabled/ config to:
server {
listen 80;
server_name mydomain.com www.mydomian.com;
location / {
return https://$host$request_uri;
}
}
server {
server_name www.mydomain.com mydomain.com;
root /var/www/mysite;
...
...
...
After doing this I also had to edit the Analytic Extension so that my Piwik url got updated to include www.mydomain.com from its original domian.com.
If anyone has a better way of doing it, I would be interested in learning it.