Django + uWSGI + Cherokee에는 문제가 없었습니다. 필자는 두 프레임 워크 중 하나에 커밋하기 전에 파일론을 사용하고 싶습니다. 붙여 넣기와 철탑을 실행했을 때 아무 문제가 실행Pylons + uWSGI + Cherokee에서 리디렉션 루프가 발생할 수있는 원인은 무엇입니까?
gettingstarted 1.0/-
나는 pylonshq.com에서 튜토리얼을 따라 갔다. 그래서 내가 projects.unbit.it에서 uWSGI와 철탑을 실행하는 지침을 사용 - uwsgi/위키/UsePaste이것은 내가 체로키와 함께 사용되는 소스 인터프리터 라인 (연결 127.0.0.1:5000) :
uwsgi -s 127.0.0.1:5000 --paste config:/var/www/pylons/example/development.ini -H /var/www/pylons/ -M
체로키 내 V 서버 루트 디렉토리와 bokken.test.com입니다 : 은/var/www /에서 철탑/예/예/공공
(내가 함께하고 슬래쉬없이 시도했다) 내 " 디렉토리/"규칙 핸들 r이 uWSGI 소스로 설정되었지만 특정 핸들러에 대해 루트 디렉토리가 설정되지 않았습니다.
bokken.test.com을 방문하면 리디렉션 루프 오류가 발생합니다.
구글 크롬 :
The webpage at http://bokken.test.com// has resulted in too many redirects (Notice the extra slash).
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
하는 error.log : 장고는 달리
*** Starting uWSGI 0.9.5.4 (32bit) on [Sat Aug 7 19:01:51 2010] ***
compiled with version: 4.4.3
Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:28:26)
[GCC 4.4.3]
your memory page size is 4096 bytes
allocated 372 bytes (0 KB) for 1 request's buffer.
Setting PythonHome to /var/www/pylons/...
binding on TCP port: 5000
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
Loading paste environment: config:/var/www/pylons/example/development.ini
application 0 (/) ready
setting default application to 0
spawned uWSGI master process (pid: 1278)
spawned uWSGI worker 1 (pid: 1280)
[pid: 1280|app: 0|req: 1/1] 192.168.0.198() {52 vars in 926 bytes} [Sat Aug 7 19:01:55 2010] GET/=> generated 433 bytes in 7 msecs (HTTP/1.1 301) 2 headers in 95 bytes (0 async switches on async core 0)
는 튜토리얼 아무도 내가 uwsgi.xml 또는 .wsgi 스크립트를 지정 찾을 수 없습니다. 변경해야 할 항목이 확실하지 않습니다.
응답 해 주셔서 감사합니다. 그러나 오랫동안 체로키를 버리고 Nginx로 전환했습니다. 그러나 내 디렉토리 경로가 잘못되었으므로 응답은 유효하지만 파일 서버를 거치지 않고 웹 서버가 정적 파일을 제공하기를 원했습니다. 그러나 적어도 나를 위해, nginx에서 설치하는 것이 더 쉬웠습니다. –
나는 너에게 nginx와 함께 행운을 빈다. :) –