got redirects working

pull/1/head
Ed Summers 2012-01-16 23:32:32 +00:00
parent 789b3ec118
commit 7afb746835
1 changed files with 10 additions and 2 deletions

View File

@ -1,12 +1,15 @@
WSGIPythonHome /opt/regluit/ENV
WSGISocketPrefix /opt/regluit
<VirtualHost *:80>
<VirtualHost _default_:80>
ServerName unglue.it
ServerAdmin info@gluejar.com
RewriteEngine On
RewriteCond %{SERVER_NAME} !^unglue.it$ [NC]
RewriteRule (.*) http://unglue.it$1 [R=301,L]
RewriteRule ^/$ https://unglue.it/ [R=301]
RewriteRule /admin(.*) https://unglue.it/admin$1 [R=301]
RewriteRule /accounts(.*) https://unglue.it/accounts$1 [R=301]
@ -33,6 +36,11 @@ SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
SSLCertificateChainFile /etc/ssl/certs/gd_bundle.crt
RewriteEngine On
RewriteCond %{SERVER_NAME} !^unglue.it$ [NC]
RewriteRule (.*) https://unglue.it$1 [R=301,L]
WSGIDaemonProcess regluit-ssl processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
WSGIScriptAlias / /opt/regluit/deploy/regluit.wsgi