I've been investigating a situation where deploying through fabric returns 
a ``ERR_EMPTY_RESPONSE`` on Chrome (haven't tried other browsers). A bit of 
info on my setup and the issue:

   - Two domain names, geoffandkaty.com and everaftereisenbarth.com 
   registered through Google, using Digital Ocean DNS to point to my Digital 
   Ocean droplet (Debian Jessie)
      - Both have A name records @ to my droplet IP address
      - Both have CNAME records * pointing to * (which Digital Ocean filled 
      in as "geoffandkaty.com." and "everaftereisenbarth.com.")
   - Scenario One:
      - If I set ``ALLOWED_HOSTS`` in both settings.py and 
      local-settings.py to ``[".geoffandkaty.com", 
".everaftereisenbarth.com"]`` 
      I get the ``ERR_EMPTY_RESPONSE`` when trying to go to 
      http://www.geoffandkaty.com / http://geoffandkaty.com (and the same for 
      everaftereisenbarth.com).
   - Scenario Two:
      - If I set ``ALLOWED_HOSTS`` in both settings to 
      ``["geoffandkaty.com", "www.geoffandkaty.com", "everaftereisenbarth.com", 
      "www.everaftereisenbarth.com"]``, then everything works fine.
   
I know Django supports ".domain-name.com" syntax, so I initially thought 
that maybe nginx didn't, although I see in their docs 
<https://nginx.org/en/docs/http/server_names.html#wildcard_names> that they 
do. I notice in my sites-enabled/wedding.conf file that manually changing 
``server_name`` and the code for denying illegal host headers to the dot 
syntax creates the issue. Perhaps this is an issue with how I have my 
domain names set up on Digital Ocean?

This isn't really a pervasive issue for me anymore as I'm just going with 
the setup in Scenario Two, but I figured I'd make a post here before filing 
an issue on GitHub in case someone can tell me if this is an issue with my 
setup. 

I think the work that @EduaroRivas (not sure if this will tag him in this 
post?) has done on the fabric deployment is amazing, and I'm very grateful 
for it. Figured he might have some insight into this, but if anyone has any 
ideas, I'm all game. 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to