Skip to content

Official repository and New notation supported

Compare
Choose a tag to compare
@jdauphant jdauphant released this 11 Feb 16:58
· 168 commits to master since this release
  • Official repository for Debian/Ubuntu
  • New notation supported :
include_nginx_hhvm: |
      try_files $uri $uri/ /index.php?$args;
      location ~ \.(hh|php)$ {
        try_files     $uri =404;
        fastcgi_pass  unix:/var/run/hhvm/sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include       fastcgi_params;
      }

nginx_sites:
 hhvm_test:
     - |
       listen 80;
       server_name test_hhvm.example.com;
       root "/homestead/";
       {{include_nginx_hhvm}}

The result is :

#Ansible managed: /home/julien/project/ansible-roles/nginx/templates/site.conf.j2 modified on 2015-02-05 20:14:10 by julien on pc
server {
   listen 80;
   server_name test_hhvm.example.com;
   root "/homestead/";
   try_files $uri $uri/ /index.php?$args;
   location ~ \.(hh|php)$ {
     try_files     $uri =404;
     fastcgi_pass  unix:/var/run/hhvm/sock;
     fastcgi_index index.php;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     include       fastcgi_params;
   }

}
  • Minor correct in README