Since you aren't likely to be hosting multiple sites under different host names, don't worry about a VirtualHost, just place it at global scope level in main Apache configuration file. Ie., at the end of the httpd.conf file. With that should go the Directory block and other directives within it that documentation says you will need.
If at some point in the future you need to use VirtualHost's then start with Apache documentation to learn about them. http://httpd.apache.org/docs/2.2/vhosts/ Graham On 28 April 2011 00:06, Hanson Johnson <[email protected]> wrote: > Hello Graham, thank you. I discovered my mistake, I added .so again to the > LoadModule, when I removed it, apache is running fine. I am proceeding to > the next step now. > > WSGIScriptAlias /myapp /usr/local/www/wsgi-scripts/myapp.wsgi > > This directive can only appear in the main Apache configuration files. The > directive can be used at server scope but would normally be placed within > the VirtualHost container for a particular site. > > Please where is theĀ VirtualHost container? > Thank you. > > > On Wed, Apr 27, 2011 at 3:46 AM, Graham Dumpleton > <[email protected]> wrote: >> >> On 27 April 2011 20:37, Hanson <[email protected]> wrote: >> > Please I have read the Quick Configuration Guide on >> > http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide but I >> > seem not to understand. I have downloaded and copied mod_wsgi-win32- >> > ap22py27-3.3.so to the modules directory in my apache installation >> > path. >> > >> > Please how do I edit my httpd.conf, what and what will I add and where >> > will I add them? >> > >> > I will be very grateful if you help me succeed in this task. >> > Thank you. >> >> Where to put Windows binary and what to call it detailed in: >> >> http://code.google.com/p/modwsgi/wiki/InstallationOnWindows >> >> What to put in Apache configuration to have module loaded detailed in >> section: >> >> >> http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Loading_Module_Into_Apache >> >> Once you have that LoadModule line in place and Apache appears to >> restart okay, then use hello world WSGI program in: >> >> http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide >> >> along with the WSGIScriptAlias directive as explained to test simple >> script works. >> >> For your actual application, how you configure things will depend on >> what it is and how you want to expose it. Further guidelines in: >> >> http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines >> >> If this doesn't help, you will need to be more explicit about the >> actual problem you are having. >> >> Remember, the Apache error log is your friend and you should keep a >> close eye on it for any sort of error message when you are having >> problems. Also ensure to increase the Apache error log level to get >> additional information out of mod_wsgi about what it is doing while >> you sort things out. See: >> >> http://code.google.com/p/modwsgi/wiki/DebuggingTechniques >> >> Graham >> >> -- >> 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. > -- 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.
