Graham, Thank you. Yes, I intend to use Flask. I will try with your example.
On Mon, Feb 27, 2012 at 3:34 PM, Graham Dumpleton < [email protected]> wrote: > If you are only interested running a single Python web application, > then all you need do is use WSGIScriptAlias as documented in mod_wsgi > documentation, but use a sub URL for where you want the Python web > application to appear. For example: > > WSGIScriptAlias /suburl /some/path/app.wsgi > > The WSGI script file and your application code should not be placed > under /var/www/html as you would with PHP. > > Read through: > > http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines > > To give a more specific answer would need to know more about whether > intending to host a single Python web application using a framework or > whether you intend to work at raw WSGI level. > > I would strongly discourage working at raw WSGI level. The preferred > way in WSGI it to use a framework. > > If you are after something lightweight and low level, then use Flask > and/or Werkzeug. > > Graham > > On 28 February 2012 02:44, Marcellus <[email protected]> wrote: > > At my company we have an internal server, something like: > > > > http://csnet33.atlcz5/ > > > > and the web facing files are located at /var/www/html/ > > > > > > In the html file there are various folders contain php (and run > > smoothly). > > > > lets say I want to create a wsgi app in this folder: > > > > /var/www/html/projpy > > > > > > How would I go about setting this up in my httpd.conf file? Any > > suggestions? > > > > -- > > You received this message because you are subscribed to the Google > Groups "modwsgi" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::: *Marcellus G. Easley [email protected] 404.593.3531 mobile* -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
