You might find this helpful http://simplestation.com/locomotion/mod_wsgi-with-apache-2-on-centos-4/
We're using CENTOS 4 and it definitely took us a little bit to figure out how to set it all up. On Jan 24, 6:05 am, frankentux <[email protected]> wrote: > On 22 Jan., 04:31, cu <[email protected]> wrote: > > > > > Here are the steps that I followed as > > perhttp://turbogears.org/2.1/docs/main/Deployment/modwsgi+virtualenv.html. > > 1. I created a tg2 app 'ssl' > > 2. Did a 'paster quickstart ssl' > > 3. easy_install modwsgideploy > > 4. cd ssl > > 5. paster modwsgi_deploy > > 6. This creates an apache folder inside 'ssl'. > > 7. An apache config file gets created which is supposed to be copied > > into /etc/httpd/conf.d > > Here's the top part of that file: > > ==================================================================== > > #Apache configuration File > > #Read README.txt > > #1. This file is the apache2 config file. It should be added to your > > apache config folder. If you mounting your app as a site wide package, > > you can rename the file to something like 002-ssl and put anything > > else that you want to be available in 001-someapp; When done copy to > > apache config folder. On Debian copy to /etc/apache2/sites-available/ > > #cp ./apache/ssl /etc/apache2/sites-available/ssl > > #a2ensite ssl > > Are you sure that the Apache configuration on CentOS pulls in > all .conf files from /etc/apache2/sites-available? > For instance, on openSUSE, the default Apache set up is configured to > look in /etc/apache2/vhosts.d/ for all files that end in .conf > I'm not saying that /etc/apache2/sites-available is wrong - and you > may have configured your apache setup for this, but if you're running > a default apache from CentOS, I'd say you should check out /etc/ > apache2/httpd.conf to see when and how virtual hosts are set up. > > You should also do a tail -f /var/log/apache2/error.log (or wherever > CentOS's Apache logs errors). > > Ciaran > > > > > #Default location for tg2 project is /usr/local/turbogears/ssl. That > > is where you should put your project. This folder should be outside of > > apache location. Your package should not be installed into python site- > > package. > > > #2. Alias/Allow apache to serve static content. > > Alias /ssl/images /root/ssl/ssl/public/images > > Alias /ssl/css /root/ssl/ssl/public/css > > Alias /ssl/javascript /root/ssl/ssl/public/javascript > > > #[Optional] Embeded mode (http://example.com/ssl).Forbigwebsites > > with a lot of memory and visitors. As of version 0.4.16 deamon mode is > > default and it should be used on Linux. On windows use embeded mode. > > > #WSGIScriptAlias /ssl /usr/local/turbogears/ssl/apache/ssl.wsgi > > > #3. Test if modwsgi is working. Uncomment below line, and go > > tohttp://localhost/test: > > WSGIScriptAlias /test /root/ssl/apache/test.wsgi > > ============================================================ > > For starters, I am checking if test.wsgi works. But it gives > > me this error: "The requested URL /test was not found on this server." > > I am running on Cent 0S 5.1 and Python 2.4. > > Any help would be appreciated. > > > R, > > bm > > > On Jan 19, 12:42 pm, Michael Pedersen <[email protected]> wrote: > > > > In order to try to troubleshoot this, we would need the following: > > > > * Your apache config files > > > * Which version of centos you are running > > > * Which version of Python you are running > > > * Any messages that are residing in your error log > > > > With those, we can try to piece together what is happening. > > > > On Tue, Jan 19, 2010 at 12:19 PM, cu <[email protected]> wrote: > > > > I am new to the forum. Please bear with me if the questions are not > > > > crystal clear. > > > > I am having problems in deploying Apache with modwsgi for Tg2. I > > > > followed the > > > > instructions inhttp://turbogears.org/2.1/docs/main/Dep…l#example. > > > > I am on a centos machine and the error that I get at the end of it is > > > > "Service unavailable" when I > > > > use the test.wsgi file. > > > > > Any input would be aprpeciated. > > > > > Thanks, > > > > bm > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "TurboGears" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<turbogears%[email protected]> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/turbogears?hl=en. > > > > -- > > > Michael J. Pedersen > > > My IM IDs: Jabber/[email protected], ICQ/103345809, > > > AIM/pedermj022171 > > > Yahoo/pedermj2002, MSN/[email protected] -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

