문제

I have the following problem:

  • I cannot remotely access my django app with Apache+mod_wsgi.

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.

So I would like to know why I cannot access remotely trough Apache.

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>

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?

Thanks in advance!

도움이 되었습니까?

해결책 2

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.

다른 팁

Did you check the firewall settings? That port 80 is open to the world?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top