Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
50 deletions.
There are no files selected for viewing
54 changes: 27 additions & 27 deletions
54
cookbooks/vagrant_main/templates/default/vagrant.conf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<VirtualHost *:80> | ||
ServerName <%= node[:project_name] %> | ||
ServerAdmin <%= node[:apache][:contact] %> | ||
ServerAlias 0.0.0.0 | ||
LogLevel warn | ||
ErrorLog <%= node[:apache][:log_dir] %>/<%= node[:project_name] %>_error.log | ||
CustomLog <%= node[:apache][:log_dir] %>/<%= node[:project_name] %>_access.log combined | ||
|
||
WSGIDaemonProcess <%= node[:project_name] %> user=www-data group=www-data maximum-requests=10000 python-path=/home/vagrant/env/lib/python2.6/site-packages | ||
WSGIProcessGroup <%= node[:project_name] %> | ||
|
||
WSGIScriptAlias / <%= node[:home_folder] %>/../deploy/django.wsgi | ||
|
||
|
||
<Directory <%= node[:home_folder] %>/../deploy> | ||
Order deny,allow | ||
Allow from all | ||
</Directory> | ||
|
||
Alias /media/ /var/www/<%= node[:project_name] %>/media/ | ||
Alias /static/ /var/www/<%= node[:project_name] %>/static/ | ||
<Directory /var/www/<%= node[:project_name] %>/> | ||
Order allow,deny | ||
Allow from all | ||
</Directory> | ||
ServerName <%= node[:project_name] %> | ||
ServerAdmin <%= node[:apache][:contact] %> | ||
ServerAlias 0.0.0.0 | ||
|
||
LogLevel warn | ||
ErrorLog <%= node[:apache][:log_dir] %>/<%= node[:project_name] %>_error.log | ||
CustomLog <%= node[:apache][:log_dir] %>/<%= node[:project_name] %>_access.log combined | ||
|
||
WSGIDaemonProcess <%= node[:project_name] %> user=www-data group=www-data maximum-requests=10000 python-path=/home/vagrant/env/lib/python2.6/site-packages | ||
WSGIProcessGroup <%= node[:project_name] %> | ||
|
||
SetEnv DJANGO_ENV development | ||
WSGIScriptAlias / <%= node[:home_folder] %>/../deploy/django.wsgi | ||
|
||
<Directory <%= node[:home_folder] %>/../deploy> | ||
Order deny,allow | ||
Allow from all | ||
</Directory> | ||
|
||
Alias /media/ /var/www/<%= node[:project_name] %>/media/ | ||
Alias /static/ /var/www/<%= node[:project_name] %>/static/ | ||
|
||
<Directory /var/www/<%= node[:project_name] %>/> | ||
Order allow,deny | ||
Allow from all | ||
</Directory> | ||
|
||
</VirtualHost> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.