开发者

Django With Apache - Double Content In Response

i use an apache to run my django instances. my apache doubles the django output.

so in developement i get this:

my response text

but on apache "production", this:

my response text 
my response text

my vhost config look like this:

<VirtualHost *>                                                                                              
    Alias /public /xxx/public                                          
    Redirect /robots.txt /public/robots.txt                                                              
    <Directory "/xxx">                                                        
        Order allow,deny                                                                             
        Allow from all                                                                               
    </Directory>                                                                                     
    ServerName www.xxx.de                                                                  
    ServerAlias *.xxx.de                                                                   
    SetHandler python-program                                                                      开发者_JS百科      
    PythonHandler django.core.handlers.modpython                                                         
    SetEnv DJANGO_SETTINGS_MODULE settings                                                               
    SetEnv PYTHON_EGG_CACHE '/tmp/python-eggs'                                                       
    PythonHandler django.core.handlers.modpython                                                     
    PythonDebug Off                                                                                  
    PythonPath "['', '/xxx'] + sys.pa
</VirtualHost>

i don't know whats wrong, do u know?


I do not know whether this is the issue, but you have PythonHandler written twice. Also, mod.wsgi is preferred to mod_python by many.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜