I resolved it. Needed to include www
in /etc/nginx/sites-enabled/mysite.conf under
...snip...
## Deny illegal Host headers
if ($host !~* ^(mydomain.org|www.mydomain.org)$ ) {
return 444;
}
...snip...
--
You received this message because you are subscribed to
Thanks. Yes, but if I had done fab deploy again, I would have lost all
database built so far. I am yet to learn backup and restoring databases.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop
Yeah, the fabfile will do that for you if you add the www and non www
versions of the domain to DOMAINS in the FABRIC dictionary, and then fab
deploy again.
Anyways, glad you got it working.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
Your production database and static files are not affected by fab deploy.
It simply uploads your project's code and configuration files for nginx and
gunicorn (broadly speaking).
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe
Hello,
I used only mysite.org with fabric.
ALLOWED_HOSTS = ["mysite.org"]
Now, I want to include www.mysite.org as well. I did the following.
1. Add CNAME record - www @ at digitalocean (where I host)
2. Add www.mysite.org to allowed hosts in localsettings, ALLOWED_HOSTS =
I'd suggest having www never touch the Django app, and redirect all its
requests via nginx:
server {
listen 80;
server_name www.foo.com;
rewrite ^(.*) http://foo.com$1 permanent;
}
On Mon, May 18, 2015 at 11:26 AM, taedori redleopar...@gmail.com wrote:
Thanks for reply
Actual
Hello, taedori.
Do you have any more details one what exactly is failing? What do you
see when you visit the site without www? From what you've explained, it
sounds like everything is setup correctly. Are you sure your DNS
settings point both domain variants to the server were you're
Thanks for reply
Actual address is
www.taedori-staging.com.
and can you try taedori-staging.com.
and I set up DNS A Record.
www and @ for my server ip address.
--
You received this message because you are subscribed to the Google Groups
Mezzanine Users group.
To unsubscribe from this group