django behind squid

已查看 14 次
跳至第一个未读帖子

Roman

未读,
2016年12月26日 16:59:332016/12/26
收件人 Django users
Hi,

please, I have problem with DJANGO behind reverse proxy SQUID... 

Squid is set so that after recieve request it redirect me to another local port. This redirect works. From DJANGO I recieve ERROR 404 with this:

Request Method: GET
Request URL: http://a.server.cz:5500/http://a.server.cz:5500/


{u'path': u'http://a.server.cz:5500/'}



In terminal I see:
[26/Dec/2016 21:41:00] "GET http://a.server.cz:5500/ HTTP/1.1" 404 1696



I think, that problem is, that squid add squid server address to absolute path of request ...  


Network scheme:

:--------------------------:
:                          :
:         INTERNET         :
:                          :
:--------------------------:
           
:
           
:
           
: request - a.server.cz:5500
           
:
a
.server.cz :
:----------------------------:
:                            :
:      squid: 5500 -> 5501   :
:                            :
:                            :
:      DJANGO: listen 5501   :
:                            :
:----------------------------:



Please, can you help me?

Thank you!
回复全部
回复作者
转发
0 个新帖子