Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Friday, March 19, 2010

Apache mod_fcgid is the way to go for webpy

1. automatically spawns more processes based on traffic - lighttpd automatically the spawns the max number of processes even when no traffic - which is not useful if your max-procs is 100


2. usually need to set PYTHONPATH or append to sys.path inside code.py manually
import os,sys
sys.path.append( os.path.dirname(os.path.abspath(__file__)))

3. This is how you hook app.run for webpy
if __name__ == '__main__':
if apache:
web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
app.run(session_mw)
else:app.run(session_mw)


Saturday, December 30, 2006

"htpasswd" and /etc/httpd/conf/httpd.conf

there is probably a
so anywhere after athat

after that change, we need to make the /www/svn_new/main/auth.conf file
the "htpasswd" commmand does this
from shell,
cd /www/svn_new/main/
htpasswd -c auth.conf travis
(-c creates if not exists)
then to add future users, for example,
htpasswd auth.conf travis
5:27:38 pm
mark
htpasswd -c /etc/httpd/repo_passwd user