#!/usr/bin/python BROKEN import py import cell issuedir = cell.py.path.local('/www/%(CELLDOMAIN)s/issue' % locals()) print """\ # # THIS FILE is autogenerated from /admin/bin/www_make_roundup_inc.py # RewriteRule ^/issue$ https://%(CELLDOMAIN)s/issue/ [R,L] RewriteCond %%{SERVER_PORT} ^80$ RewriteRule ^/issue/(.*)$ https://%(CELLDOMAIN)s/issue/$1 [R,L] """ % locals() # ProxyPass /issue/ http://localhost:7502/ # #ProxyPass /svn http://localhost:8080/svn for p in issuedir.listdir(): if p.check(dir=1) and p.basename.find('old') == -1: name = p.basename print print "RewriteRule ^/issue/%(name)s$ https://%(CELLDOMAIN)s/issue/%(name)s/ [R,L]" % locals() print "ProxyPass /issue/%(name)s/ http://localhost:7502/%(name)s/" % locals()