well i fixed the problem, i'm not entirely sure how. I tried to follow
the cherrypy wiki page about setting this up, and it's pretty
confusing. for anyone whose trying to do the same thing, here's what
my site conf looks like:
---------------
NameVirtualHost *:80
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^/edit(.*) https://mydomain.net/edit$1 [L]
RewriteRule ^/mail(.*) https://mydomain.net/mail$1 [L]
RewriteRule ^/static/(.*) /path/to/static/$1 [L]
RewriteCond %{REQUEST_URI} !autostart
RewriteCond %{REQUEST_URI} !^/mail/
RewriteRule ^(.*)$ http://mydomain.net:8080$1 [P]
ErrorDocument 502 /cgi-bin/autostart.cgi
AddDefaultCharset utf-8
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
RewriteEngine on
RewriteMap escape int:escape
RewriteRule ^/static/(.*) /path/to/static/$1 [L]
RewriteCond %{REQUEST_URI} !mail
RewriteCond %{REQUEST_URI} !autostart
RewriteRule ^(.*)$ http://mydomain.net:8080$1 [P]
ErrorDocument 502 /cgi-bin/autostart.cgi
AddDefaultCharset utf-8
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
---------------------
This setup forces my email webserver and any system edits to be handled
through SSL, and uses Apache to serve the static files. If you're
using this be careful that none of your Turbogears URI's contain 'mail'
or 'autostart' - if so change how the RewriteCond matches.
I'm still having some problems getting the autostart script to work
correctly.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---