Hello,
Im using the module puppet-apache to configure a machine with django (python/wsgi).
In the Puppet server, I tried:
class { 'apache': }
include apache::mod::wsgi
apache::vhost { '*':
servername => '...',
port => '80',
docroot => '/var/www/djangoDeploy',
directories => [ { 'path' => 'wsgi.py',
'provider' => 'files',
'allow' => 'from all'
}, ],
wsgi_script_aliases => {'/djangoDeploy' => '/var/www/djangoDeploy/wsgi.py'},
}
Then I got:
<VirtualHost *:80>
ServerName ...
## Vhost docroot
DocumentRoot "/var/www/djangoDeploy"
<Files "wsgi.py">
Require all granted
</Files>
...
WSGIScriptAlias /djangoDeploy "/var/www/djangoDeploy/wsgi.py"
</VirtualHost>
But what I need is:
<VirtualHost *:80>
ServerName ...
WSGIScriptAlias /djangoDeploy /var/www/djangoDeploy/wsgi.py
<Directory /var/www/djangoDeploy>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
Any tips for me ? Thanks in advance !