0
命令 -捲曲的Django的臨時服務器(EC2)重定向到本地主機
curl -I http://stage.servername.com/
響應 -
HTTP/1.1 301 MOVED PERMANENTLY
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 02 Dec 2014 13:18:45 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
x-frame-options: DENY
Location: https://127.0.0.1:8000/
x-content-type-options: nosniff
P3P: CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"
以下是我nginx的設置 - https://gist.github.com/anonymous/f84c5b7bed41b40a3cfd
的gunicorn服務器在端口上運行8000.
(bz)[email protected]:~$ ps aux|grep gunicorn
username 2283 0.0 0.5 51912 11028 ? S 11:42 0:00 /home/username/Envs/bz/bin/python /home/username/Envs/bz/bin/gunicorn bizchat.wsgi:application --workers=3 -D
username 2288 0.0 1.3 136244 28428 ? S 11:42 0:00 /home/username/Envs/bz/bin/python /home/username/Envs/bz/bin/gunicorn bizchat.wsgi:application --workers=3 -D
username 2289 0.0 1.3 136260 28428 ? S 11:42 0:00 /home/username/Envs/bz/bin/python /home/username/Envs/bz/bin/gunicorn bizchat.wsgi:application --workers=3 -D
username 2290 0.0 1.7 144484 36860 ? S 11:42 0:00 /home/username/Envs/bz/bin/python /home/username/Envs/bz/bin/gunicorn bizchat.wsgi:application --workers=3 -D
username 3452 0.0 0.0 10468 924 pts/0 S+ 13:09 0:00 grep --color=auto gunicorn
nginx服務沒問題。
不過,我使用django-secure但有下列標誌SSLIFY_DISABLE=True
當我打開url.myapp.com它redirects
到https://127.0.0.1:8000
任何想法,有什麼問題呢?