I have a django 1.6 site running on my development machine under runserver, and another production machine with apache and modwsgi. When I access the production site within our LAN it works with no issues. When I try to access the site from outside our lan (ie from the wild and wolly Internet), I get a 500 error. My ISP blocks port 80, so I use port 7000, which works to access the site from within the LAN, but not from the outside.
-- The Apache error log does not give much help, or I am not very good at understanding what it is telling me. I have set the error level to debug.
When I access the site from within my LAN, I get this information:
[Tue Feb 25 17:45:12.199714 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/summary
[Tue Feb 25 17:45:12.199850 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/summary
[Tue Feb 25 17:45:12.200117 2014] [access_compat:error] [pid 3261] [client 192.168.25.150:54397] AH01797: client denied by server configuration: /var/www/inventory, referer: http://192.168.25.126:7000/mom/inventory/summary
[Tue Feb 25 17:45:12.224008 2014] [:info] [pid 3808] mod_wsgi (pid=3808): Create interpreter 'beagle:7000|/mom'.
[Tue Feb 25 17:45:12.227504 2014] [:info] [pid 3808] mod_wsgi (pid=3808): Adding '/var/www/mom/' to path.
[Tue Feb 25 17:45:12.228545 2014] [:info] [pid 3808] mod_wsgi (pid=3808): Adding '/var/www/mom/inventory/' to path.
[Tue Feb 25 17:45:12.229499 2014] [:info] [pid 3808] mod_wsgi (pid=3808): Adding '/var/www/mom/inventory_project/' to path.
[Tue Feb 25 17:45:12.230452 2014] [:info] [pid 3808] mod_wsgi (pid=3808): Adding '/var/lib/django-venv/site-packages/' to path.
[Tue Feb 25 17:45:12.232239 2014] [:info] [pid 3808] [client 192.168.25.150:50869] mod_wsgi (pid=3808, process='mom', application='beagle:7000|/mom'): Loading WSGI script '/var/www/mom/inventory_project/wsgi.py'.
[Tue Feb 25 17:45:12.625609 2014] [:error] [pid 3808] Settings: SERVER: beagle, ENVIRONMENT: production
[Tue Feb 25 17:45:13.456659 2014] [deflate:debug] [pid 3261] mod_deflate.c(764): [client 192.168.25.150:54397] AH01384: Zlib: Compressed 15678 to 2599 : URL /mom/inventory/main, referer: http://192.168.25.126:7000/mom/inventory/summary
[Tue Feb 25 17:45:13.629065 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.629325 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.630183 2014] [deflate:debug] [pid 3261] mod_deflate.c(764): [client 192.168.25.150:54397] AH01384: Zlib: Compressed 1594 to 590 : URL /static/inventory/inventory.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.636815 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.636948 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.638098 2014] [deflate:debug] [pid 3260] mod_deflate.c(764): [client 192.168.25.150:54398] AH01384: Zlib: Compressed 1765 to 634 : URL /static/inventory/jquery/css/demo_page.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.639215 2014] [authz_core:debug] [pid 3262] mod_authz_core.c(802): [client 192.168.25.150:54399] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.639326 2014] [authz_core:debug] [pid 3262] mod_authz_core.c(802): [client 192.168.25.150:54399] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.640633 2014] [authz_core:debug] [pid 3805] mod_authz_core.c(802): [client 192.168.25.150:54400] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.640745 2014] [authz_core:debug] [pid 3805] mod_authz_core.c(802): [client 192.168.25.150:54400] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.642023 2014] [deflate:debug] [pid 3805] mod_deflate.c(764): [client 192.168.25.150:54400] AH01384: Zlib: Compressed 8463 to 2200 : URL /static/inventory/jquery/css/demo_table_jui.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.642862 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.642932 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.643676 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.643755 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.648688 2014] [deflate:debug] [pid 3262] mod_deflate.c(764): [client 192.168.25.150:54399] AH01384: Zlib: Compressed 10772 to 2710 : URL /static/inventory/jquery/css/demo_table.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.652155 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.652677 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.652887 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.655407 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.659854 2014] [deflate:debug] [pid 3257] mod_deflate.c(764): [client 192.168.25.150:54401] AH01384: Zlib: Compressed 33959 to 5993 : URL /static/inventory/jquery/css/jquery-ui-1.8.4.custom.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:13.667481 2014] [deflate:debug] [pid 3260] mod_deflate.c(764): [client 192.168.25.150:54398] AH01384: Zlib: Compressed 34591 to 8694 : URL /static/inventory/jquery/js/FixedColumns.js, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.674734 2014] [deflate:debug] [pid 3259] mod_deflate.c(764): [client 192.168.25.150:54402] AH01384: Zlib: Compressed 93434 to 33372 : URL /static/inventory/jquery/js/jquery.js, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:13.711144 2014] [deflate:debug] [pid 3261] mod_deflate.c(764): [client 192.168.25.150:54397] AH01384: Zlib: Compressed 377508 to 86384 : URL /static/inventory/jquery/js/jquery.dataTables.js, referer: http://192.168.25.126:7000/mom/inventory/main
[Tue Feb 25 17:45:14.177813 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.177909 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.181418 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.181542 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.182116 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.182219 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.182780 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.182840 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.183376 2014] [authz_core:debug] [pid 3262] mod_authz_core.c(802): [client 192.168.25.150:54399] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.183439 2014] [authz_core:debug] [pid 3262] mod_authz_core.c(802): [client 192.168.25.150:54399] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.183953 2014] [authz_core:debug] [pid 3805] mod_authz_core.c(802): [client 192.168.25.150:54400] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.184014 2014] [authz_core:debug] [pid 3805] mod_authz_core.c(802): [client 192.168.25.150:54400] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.185013 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.185072 2014] [authz_core:debug] [pid 3260] mod_authz_core.c(802): [client 192.168.25.150:54398] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.185883 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.185994 2014] [authz_core:debug] [pid 3261] mod_authz_core.c(802): [client 192.168.25.150:54397] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.186635 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.186742 2014] [authz_core:debug] [pid 3259] mod_authz_core.c(802): [client 192.168.25.150:54402] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.189644 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.189704 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.218433 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of Require all granted: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.218699 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.219309 2014] [deflate:debug] [pid 3257] mod_deflate.c(764): [client 192.168.25.150:54401] AH01384: Zlib: Compressed 141 to 110 : URL /static/inventory/print.css, referer: http://192.168.25.126:7000/mom/inventory/
[Tue Feb 25 17:45:14.396022 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of Require all granted: granted
[Tue Feb 25 17:45:14.396292 2014] [authz_core:debug] [pid 3257] mod_authz_core.c(802): [client 192.168.25.150:54401] AH01626: authorization result of <RequireAny>: granted
When I access from the Internet side of my cable modem, I get this
[Tue Feb 25 17:55:30.149846 2014] [authz_core:debug] [pid 3867] mod_authz_core.c(802): [client 192.168.25.1:48718] AH01626: authorization result of Require all granted: granted
[Tue Feb 25 17:55:30.149988 2014] [authz_core:debug] [pid 3867] mod_authz_core.c(802): [client 192.168.25.1:48718] AH01626: authorization result of <RequireAny>: granted
[Tue Feb 25 17:55:30.150267 2014] [access_compat:error] [pid 3867] [client 192.168.25.1:48718] AH01797: client denied by server configuration: /var/www/inventory
[Tue Feb 25 17:55:30.173588 2014] [:info] [pid 3829] mod_wsgi (pid=3829): Create interpreter 'beagle:7000|/mom'.
[Tue Feb 25 17:55:30.177093 2014] [:info] [pid 3829] mod_wsgi (pid=3829): Adding '/var/www/mom/' to path.
[Tue Feb 25 17:55:30.178149 2014] [:info] [pid 3829] mod_wsgi (pid=3829): Adding '/var/www/mom/inventory/' to path.
[Tue Feb 25 17:55:30.179099 2014] [:info] [pid 3829] mod_wsgi (pid=3829): Adding '/var/www/mom/inventory_project/' to path.
[Tue Feb 25 17:55:30.180116 2014] [:info] [pid 3829] mod_wsgi (pid=3829): Adding '/var/lib/django-venv/site-packages/' to path.
[Tue Feb 25 17:55:30.181868 2014] [:info] [pid 3829] [client 192.168.25.1:50869] mod_wsgi (pid=3829, process='mom', application='beagle:7000|/mom'): Loading WSGI script '/var/www/mom/inventory_project/wsgi.py'.
[Tue Feb 25 17:55:30.576849 2014] [:error] [pid 3829] Settings: SERVER: beagle, ENVIRONMENT: production
[Tue Feb 25 17:55:31.105004 2014] [deflate:debug] [pid 3867] mod_deflate.c(764): [client 192.168.25.1:48718] AH01384: Zlib: Compressed 571 to 353 : URL /mom/inventory/main
The messages are the same up to the last message in the second set, and it just stops. I can access the default apache site (000-default) from my LAN and from the Internet without any issues, so I think Apache is working correctly.
I have tried all sorts of urls in my settings file - the url of the router, the url from the Internet side, the LAN url of the production box, localhost, and 127.0.0.1.
Thanks for any suggestions you may have!
Mark
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEqej2MicnobunJKm6bA%2BwfkokYXCLXg0mpHBgjkK%3DgSEBXHgA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment