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 !

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0740367f-ac3e-40f4-9c76-34ebfe0cd98f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to