Re: [modwsgi] When I try to save httpd.conf file after LoadModule wsgi_module modules/mod_wsgi.so, it gives Access Denied Message

86 views
Skip to first unread message

Graham Dumpleton

unread,
Nov 19, 2012, 5:34:04 PM11/19/12
to modwsgi
What else have you put in your Apache configuration for mod_wsgi besides the LoadModule line?

Have you tried to get a WSGI hello world application (not Django), working first?


If not, get the WSGI hello world working first.

Graham


On 20 November 2012 08:02, Muhammad Imran <imranta...@gmail.com> wrote:
Hi everyone,

Its been a while since I am using python but its my first try to deploy any django web application. Right now I am having problem adding LoadModule wsgi_module modules/mod_wsgi.so in Apache httpd.conf file. I have opened httpd.conf and added statement as mentioned in http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide for loading wsgi to Apache, but first it asks to save and then gives Access Denied message without making any changes to the httpd.conf file. I would be thankful if you can please guide. I am using following versions of the software,

Python 2.7
Apache 2.2
mod_wsgi-win32-ap22py27-3.3.so - Apache 2.2 / Python 2.7

Thanks,
Muhammad Imran

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/R2tug1qpVosJ.
To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.

Muhammad Imran

unread,
Nov 20, 2012, 10:37:59 AM11/20/12
to mod...@googlegroups.com
Thanks Graham for guiding in the right direction.

Right now I have configured 'Hello World' application and its working fine when I test on local PC using 'localhost/wsgi' but unable to access from remote PCs. e.g. 'www.example.com/wsgi'. Which of the steps I need to follow for troubleshooting. Could you please guide a bit more, I would be really grateful.

Imran

pgpython

unread,
Nov 20, 2012, 11:04:41 AM11/20/12
to mod...@googlegroups.com
It depends on what you mean by 'remote' If you want to be able to access it from machines on the same lan then you can simply find its ip address of the server using ifconfig and on the remote pc set an entry in your host file of the client(s)

eg:
     192.168.1.xx www.example.com

If they are not on the same lan then you need a publicly accessible address or a vpn tunnel to expose the address

Muhammad Imran

unread,
Nov 20, 2012, 4:22:51 PM11/20/12
to mod...@googlegroups.com
Thanks for your help. Actually firewall was the issue.
Reply all
Reply to author
Forward
0 new messages