Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Danny
On 5/09/2017 12:35 AM, Matic Noč wrote: All the changes I have done so far were in templates od deploy. I think I will just put www domain in DOMAINS and in nginx template make another server with non www domain which redirects to www domain:) To do the redirect in nginx, you just need

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
On Mon, Sep 4, 2017 at 11:03 AM, Matic Noč wrote: > I have ubuntu 16.04 and when i ssh i see only mezzanine cache and > .virtualenvs, logs folders I am not at laptop now, I cannot send you whole > schema. I have searched around for quite some time and I cannot find etc >

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Matic Noč
All the changes I have done so far were in templates od deploy. I think I will just put www domain in DOMAINS and in nginx template make another server with non www domain which redirects to www domain:) -- You received this message because you are subscribed to the Google Groups "Mezzanine

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Matic Noč
I have ubuntu 16.04 and when i ssh i see only mezzanine cache and .virtualenvs, logs folders I am not at laptop now, I cannot send you whole schema. I have searched around for quite some time and I cannot find etc folder. Where is it supposed to be ? Thank you! -- You received this message

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
That sure is a problem! The path should be `/etc/nginx/` not `etc/nginx`. What OS you are using on your VPS? Regarding the templates, you are encouraged to modify those in your project to your heart's content. Do not modify Mezzanine itself, only the templates copied during the deploy to the root

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Matic Noč
The problem is that on my vps I cannot find etc/nginx folder after i make mezzanine deploy. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
Hi Matic, This is an Nginx question and has nothing to do with Mezzanine (or Django). https://www.digitalocean.com/community/questions/redirecting-non-www-to-www-in-nginx provides a quick solution to your problem. hth! -ken On Mon, Sep 4, 2017 at 8:13 AM, Matic Noč

[mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Matic Noč
Helllo, I have two questions. 1) On my deployed mezzanine I cannot find nginx conf. file (etc/nginx/ repo). 2) I have two domains "DOMAINS": ["www.example.com", "example.com"], in my fab file, and I want to edit ngnix.conf.template file so it will be able to redirect 301 the non www domains