forgot localvm.wsgi

fix apache config file to hopefully do redirect correctly -- hardcoding localvm as a name for the address for localvm vm.
pull/1/head
Raymond Yee 2015-05-26 15:10:04 -07:00
parent c8f39d9a7f
commit 55ec76d283
3 changed files with 16 additions and 6 deletions

View File

@ -3,17 +3,17 @@ WSGISocketPrefix /opt/regluit
<VirtualHost *:80>
ServerName localhost
ServerName localvm
ServerAdmin info@gluejar.com
Redirect permanent / https://127.0.0.1:443/
Redirect permanent / https://localvm:443/
</VirtualHost>
<VirtualHost _default_:443>
SSLEngine on
ServerName localhost:443
ServerName localvm:443
# generated using https://mozilla.github.io/server-side-tls/ssl-config-generator/
# intermediate mode
@ -30,7 +30,7 @@ SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
WSGIDaemonProcess regluit-ssl processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
WSGIScriptAlias / /opt/regluit/deploy/just.wsgi
WSGIScriptAlias / /opt/regluit/deploy/localvm.wsgi
<Directory /opt/regluit/static>
Options Indexes FollowSymLinks

9
deploy/localvm.wsgi Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python
import os
import django.core.handlers.wsgi
os.environ['CELERY_LOADER'] = 'django'
os.environ['DJANGO_SETTINGS_MODULE'] = 'regluit.settings.localvm'
application = django.core.handlers.wsgi.WSGIHandler()

5
vagrant/Vagrantfile vendored
View File

@ -106,8 +106,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "localvm" do |node|
node.vm.box = "precise64"
node.vm.network "private_network", type: "dhcp"
#node.vm.network "private_network", ip: "192.168.33.10"
#node.vm.network "private_network", type: "dhcp"
node.vm.network "private_network", ip: "192.168.33.10"
node.ssh.forward_agent = true
@ -119,6 +119,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# but this doesn't work
override.vm.provision "ansible" do |ansible|
ansible.playbook = 'localvm.yml'
#ansible.start_at_task = 'add setup_django.sh script to root dir'
end