Django应用程序不能使用Apache + mod_wsgi的远程accesed [英] Django app cannot be accesed remotely with Apache+mod_wsgi
问题描述
我有以下问题:
- 我无法远程访问我的Django应用程序使用Apache + mod_wsgi的。
不过,我可以远程与 manage.py的runserver 0.0.0.0:8000
Django开发服务器来访问我的Django应用程序。我可以在本地访问我的Apache + mod_wsgi的Django应用程序我的本地计算机槽端口80上。
But I can remotely access my django app with the django development server with manage.py runserver 0.0.0.0:8000
. And I can locally access my django app with Apache+mod_wsgi on my local computer trough port 80.
所以,我想知道为什么我不能访问远程低谷的Apache。
So I would like to know why I cannot access remotely trough Apache.
这是我的httpd.conf(我刚刚发布了我修改的,其他一切都是为默认值。)
This is my httpd.conf (I have just posted what I modified, everything else is as default.)
Listen *:80
LoadModule wsgi_module modules/mod_wsgi.so
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
WSGIScriptAlias / C:/Users/Ricardo/Dropbox/django_scada/django_scada/apache/wsgi.py
WSGIPythonPath C:/Users/Ricardo/Dropbox/django_scada
Alias /static/ C:/Users/Ricardo/Dropbox/static/
<Directory C:/Users/Ricardo/Dropbox/static/>
Order deny,allow
Allow from all
</Directory>
<Directory C:/Users/Ricardo/Dropbox/django_scada/django_scada/apache>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
所以我不知道是什么问题,我从来没有配置Apache服务器。我想是因为我没有与本地接入的任何问题,所以它必须是一些有关配置远程acccess阿帕奇了Apache + mod_wsgi的integreation工作正常。当我尝试从另一台计算机的访问,没有出现在访问日志,但它确实在本地时
I have never configured an Apache server so I am not sure what the problem is. I think the Apache+mod_wsgi integreation works fine because I do not have any problem with the local access, so it must be something about the configuration to remotely acccess Apache. When I try to access from another computer, nothing appears on the access log, however it does when locally.
我应该遵循哪些步骤来解决自己的问题?
Which steps should I follow to solve my problems?
在此先感谢!
推荐答案
因此,实际上这个问题是我的路由器和ISP有关。我意识到这一点时,我建立了我的大学我的网络,而不是我的家。
So actually the problem was related with my router and ISP. I realized this when I set up my network on my University instead of my home.
希望这有助于大家被卡住。
Hope this helps everyone getting stucked.
这篇关于Django应用程序不能使用Apache + mod_wsgi的远程accesed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!